clean trailing whitespace