removing a trailing space