In the 36 line word2 should be word1。 `str += word1[i];`
In the 36 line word2 should be word1。
str += word1[i];