Auto strip trailing whitespace