How to handle and interpolate a dynamic template literal string\'s format with values that can sometimes contain all 6 variables(maximum) but can contain format with sometim