charbuffer/string optimizations