strip trailing space.