Pass strings by const reference, not by value. Copying values in range-for. Prefer returning const references to members rather than copies.