You would be best to use a ticket tag and then just add the ticket tag {} on the template.
Have a watch of this temp tabs tutorial, it features customer name as ticket tag.
Some you won’t need but you would then just add {TICKET TAG:TagName} where you want it to print on the template.