ma se io ho piu' di 5 lettere non c'e' un modo per creare for dinamici ???

o mi tocca usare
if (stringa == 6) {
for(...)
}