remove last space of line.