remove end-of-line spaces