Closes #3397: footerFormat does not replace variables

Abstracted tooltipHeaderFormat to process footer or header (now called
tooltipFooterHeaderFormat)