Inside the loop access the value associated with the current character key.

Make sure to type cast[character].