this is going to look a lot better if you just do `pattern.subs(match)`