Wrong std::string find function used. Replaced with correct one.