const correctness: use cbegin/cend, const std::string