correct multi parametized macro replacer
clear macro definitions from the result