String equivalence classes

cc @mwhelan
This fixes that test that was broken