For what it’s worth, this variation manages to navigate between the existing methods.
function Base.replace(str::AbstractString, old_new1::Pair, old_new::Pair{String, String}...)
str = replace(str, old_new1)
for o_n in old_new
str = replace(str, o_n)
end
return str
end
It’s quite a brittle solution though.