You are looking for a wrong solution!
The better solution for you is implement a hash function... After implementing it, you can do right stuff for strings!
Look for Marthin Waldenburg samples @ www.delphipages.com !
He use hash lists to syntax highlight in several components!
[]s Luiz Vaz