cmd: optimized parts using CharArray.