edit material template string