duplicate token name check (when adding patterns)