remove blank space at the end of line