function strToIntegerArray(s){ // convert string to array of integers, each containing 1 chars // note chars must be integer var l = new Array(s.length); for (var i=0; i