This would do nothing.

char temp1 = word[i];
word[i] = temp1;