Admittedly, if the names do require quoting, and depending on how the function uses the value, some additional tweaking may be required.
There shouldn't be anything you cannot do with format that you can do with pre-processing and setting the variable up-front. Admittedly that is probably cleaner overall anyway though.