trim a trailing space.