change the way delete trailing space