auto clean trailing whitespace