Fix macro name to substituteVariables