strip white spaces at line end