Hm…
OK, draw() starts 60 times per second…
so first, the last letter is drawn again and again.
You could stop the whole process once i >= word.length() (using if(i<…) around the lines with random and those with text()
)
Then only the last letter would be added.