Clean up template variable names.