interpolateVariables

Interpolates variables in a string. Replaces ${varName} or {{varName}} with variable values.