Did you run that code cpulocksmith?
What did word contain after it finished?
What's the point of word[i] = word[i]; ?