Remove empty spaces at end of lines