In addition to find(), there are also other std::string functions you may find useful, i.e.
find_first_not_of(), find_first_of(), find_last_not_of(), find_last_of(), rfind()
see http://www.cplusplus.com/reference/string/string/string.html
Ancient Dragon commented: The OP doesn't know what he wants to do either :) +24