Trim character vector. Remove all leading and trailing spaces.
trim(x)
x
character vector
character vector without leading and trailing spaces