Ranged-based loops and std::string element finders