* replaced string with const string&