automatically strip trailing whitespace from code