Trims white spaces before and after the characters in a String object.
Returns the trimmed String object.