Added searchAndReplaceMacroInString()