Auto remove trailing space