Trim trailling whitespace