You could start with a std::string. Individual characters can be accessed using similar notation to an array. So if name is a string, name is the first character, name[n] is the nth character. The length of the string is given by name.length().
Armed with that information, you can begin to code a loop (maybe using for or while) to examine each character in turn.
The action you take will depend on whether any character has special significance. Presumably you have that information. This part is potentially the most complicated, but without any information to go on, it remains a blank.