stringKeyed function