cleaning up context strings a little for nodes/edges