Remove spaces at the end of the line