If supportedSchemes only contains strings, it will already be a string.  If it doesn't contain only strings, then we would (for some crazy reason) have decided that we want to support schemes that aren't strings.  In either case, casting to a string seems redundant.