enabled templating of stringToKey and keyToString conversion functions