remove all trailing spaces