remove trailing space