here is a hint, break it into an array of char, get the ascii code of each one, check to see where in ascii if it is 65 to 90, it is A to Z, add 32 to get a to z. (i am working in decimal, you can find hex ascii charts too.)
http://www.jimprice.com/ascii-0-127.gif