remove spaces at end of line.