Optimization of string operations.