Strip spaces from end of lines