delete trailing space by default