public static function replace(string $str, array $values): string
    {
        return str_replace(array_keys($values), array_values($values), $str);
    }
public static function replace(string $str, array $values): string
    {
        return str_replace(array_keys($values), array_values($values), $str);
    }
public static function replace ( string $ str , array $ values ) : string { return str_replace ( array_keys ( $ values ) , array_values ( $ values ) , $ str ) ; }
Handle string replacements given an array of find => replace values

This was added to keep sndsgd\field\Error::getMessage() DRY
@param string $str The string to replace within
@param array<string,string> $values
@return string
Handle string replacements given an array of find = > replace values