caratt = new Array(s.length);
for (i=0; i<s.length; i++)
caratt[i] = s.charAt(i);
l'array caratt contiene tutti i caratteri della stringa