bug in abbreviation code

The abbreviation code needs a check for an exact match before it looks for abbreviations. This is a problem I've noticed in a number of ways examples are :
<475hp 438ma 130mv>
tell ben test.
You tell Benq 'test.'
<475hp 438ma 130mv>
both chars were on at the time. Sometimes it works other times it will hit the wrong char.
another problem is this:
Blastem's homunculus is scuttling about here.
A lady lounges in a chair wearing some light leather armor.
A man in chainmail plays with a thin dagger.
<485hp 463ma 112mv>
cast 'firewind' lady
Ok.
Lady-watcher the homunculus hates your guts!
Winds of Flame pour from your hands, killing lady-watcher the homunculus instantly.
Lady-watcher the homunculus is dead! R.I.P
A check to see if an exact match is available before using an abbreviation would fix these issues.
Love the work you guys are doing keep up the good work
thanks for everything
<475hp 438ma 130mv>
tell ben test.
You tell Benq 'test.'
<475hp 438ma 130mv>
both chars were on at the time. Sometimes it works other times it will hit the wrong char.
another problem is this:
Blastem's homunculus is scuttling about here.
A lady lounges in a chair wearing some light leather armor.
A man in chainmail plays with a thin dagger.
<485hp 463ma 112mv>
cast 'firewind' lady
Ok.
Lady-watcher the homunculus hates your guts!
Winds of Flame pour from your hands, killing lady-watcher the homunculus instantly.
Lady-watcher the homunculus is dead! R.I.P

A check to see if an exact match is available before using an abbreviation would fix these issues.
Love the work you guys are doing keep up the good work

thanks for everything