you can see two variables with same name "NotesStr" in that code block, Try changing the name of std::string NotesStr(notesChar.begin(),notesChar.end());
to some other name.
Also in order to compare string you need to use double quotes instead of single quotes.
string test = "whoami";
if (test == "whoami") printf(...) like that.
jkchan
http://cgmath.blogspot.com