Remove spaces at end of line