Strip trailing whitespace