A computer can only store numbers. So what happens when you want to store a character? Characters are represented by numeric codes, and a computer stores those numeric codes when you ask it to store a character. If you look at an ascii table, it lists the numeric codes for all the characters. Specifically, you should note that the character '9' is not represented by the numeric code: 9. Rather, the character '9' is represented by the numeric code: 57. Crazy, huh? Some other character is represented by the numeric code: 9.
Thanks. That fixed it but what is it doing and why did I have to do that?