use stringio instead of split(//) to convert string into array