remove white spaces at end of lines