Remove '1' at end of last line