removes a trailing space