removes trailing spaces.