start string formatting replacement in templates