factor out anchorToString(Anchor anchor)