Fixed string/array read/write issue using join and split.