Renames template variables