remove last empty line