// delete duplicate names using set_intersection operator after first
// unique name for the first two white space or until '
for(int i = 0; i < newModified.music.size();i++)
{
for(int j = i+1; j < newModified.music.size(); j++)
{
vector<string> similarity;
vector<string>::iterator pos;
set_intersection(newModified.music[i].begin(),newModified.music[i].end(),newModified.music[j].begin(),newModified.music[j].end(),similarity);
//if the similarities contain a ,
pos = find(similarity.begin(), similarity.end(), ',');
/*size_t foundit = similarity.find_first_of(","); */
if (!pos->empty())
{
//delete the similarities in the second vector
replace(newModified.music[j].begin(), newModified.music[j].end(), similarity, "");
}
else
{
//do nothing
}
}
}