Automatically strip trailing whitespace