Strip trailing whitespace from lines.