Use the correct getter functions in the entity toString function