removing all trailing whitespace