remove space at end of line