You created a global variable using only "char" in the for cycle. I think it should be "var char" instead.
You created a global variable using only "char" in the for cycle. I think it should be "var char" instead.