use uniform format for core.prim toString