Remove spaces at the end of a line.