CoreMacros: fixed checking for prefix