Removes leading and trailing whitespace from a string.
trim(' hello ') → 'hello' trim('hello') → 'hello'