auto remove trailing space