Why not just use `String#sub`? It seems odd to mutate a global variable inside a template.