What do you mean by exactly the same? You mean it is a typedef? I seriously doubt that you made your own String class from the ground up which is exactly the same as std::string.
I'm pretty sure he's just joking that the capitalization error is just a typographical error in this post and not actually part of his code. I'm making that assumption because it's left justified (which is what happens when you type it in rather than copypaste), uses commas instead of semicolons and, oh yes, uses the sentence "I am thankful" for variable names.
No, I think you should just make your own function to do it. i've done and it's possible, even easy. just divide by 10s, ask if you don't get it and ill explain.