remove all trailing whitespaces