delete a space at end of line