Trim tailing whitespace.