strip trailing whitespace from everything else