Attempt to trim whitespace.