Fixed failing tests, added string utilities