remove spaces in line's end