trimming spaces

at the beginning and end of a string.