remove all trailing whitespace