providerString is the const function argument. provider is the writeable copy of that (from the second line of this function).