Strip trailing spaces.