Rework arraybuffer for string type