Strip trailing whitespace.