add strip trailing whitespace