This is probably so easy I could slap myself, but I can't figure out how to do this and it is necessary for a larger program I am building. Assuming that each letter in the alphabet is represented by a value, i.e. A=1, B=2, etc., I need to figure out a way to get the value of the letters of a string by adding up all the letters in it, multiplying those by 3, adding up all the numbers in it, multiplying those by 5, and then adding the two values together. So for example, if I had the string "bad", the value of the string would be 2 + 1 + 4 = 3(7) = 21. If the string was "bad63", the value of the string would be 21 + 5(6 + 3) = 66. Get what I mean? The string itself is coming from an outside file. I'm sure this is a simple thing to do but programming isn't my strong suit and I can't seem to find an answer to my question. Thanks for any help anyone can give me.