The database has a list of words on each line like, First, National, Bank. If someone enters "National Bank" it triggers the error even though both words are on the list."National Bank" does not match "First, National, Bank" because of the comma. Try stripping out the commas:
$_ =~ s/,//g for @orgs;
In reply to Re^3: Creating a whitelist
by tangent
in thread Creating a whitelist
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |