Strip whitespace from the beginning and end of the string.