stringToCx optimizations