Remove extra space at end of the line