trim function

Trim character vector. Remove all leading and trailing spaces.