change entity ids to strings