Rename string utilities and add tests.