The logical operator || is only used to verify whether multiple conditions will obtain a true or false value. It's not used for finding items in a string. Instead use else if-statements:
if (str.find("Legs") != std::string::npos) {
...
}
else if (str.find("Arms") != std::string::npos) {
...
}
.
.
.