....how do I turn the message into a number?

I mean....if Molly says "Hi john how are you?"

Then....how do I turn that into a number? I mean, I'm going to perform arithmetic on this number,...