Changed searchMacroInString() to subStringMacroInString()