Strict filtering, loose filtering??... it will make things realy more complicated then it realy is... The only thing it realy needs is an option for each filter to filter on "words" or not. It is the standard way of how every program in Windows works. This is proberly also what you realy meant...
with "2"="two" and "search for words" on:
"2" => two
"6002" => 6002
with "2"="two" and "search for words" off:
"2" => two
"6002" => 600two
A "word" is when the searchstring is encapseled by a space or a sign like "?.,:".
PS: and the added use of wildcards will make the search function realy perfect