Remove comments before concatenating lines