each_line does not remove the line itself, the join was adding one more