StringCommands optimizations