title: Partial Searching of Strings
body: <p>I have a requirement to convert a longName to a shortName based on a list of longNames and corresponding shortNames that are stored in a DB Table.  The table has a approx. 500 entries and not expected to grow.</p>
  
  <p>Example: I receive a request with the <code>longName</code> value set to something like: <code>Royal Bank of Scotland Euro</code> so the <code>shortName</code> value output look something like: <code>RBOS €</code> based on its value from the DB.</p>
  
  <p>I can load the DB entries of LongNames and shortNames into a Map and key the Map on the <code>longName</code> value and check if each value 
  in the string on the request exists as a key in the Map but this seems like a inefficient way to search for the corresponding 
  <code>shortName</code>. In the above example i would need to read the Map 4 times before finding a match of <code>RBOS</code> as I don't know how many values in the String would make up each Key to read the Map. </p>
  
  <p>I want to know if there's a more efficient approach to this problem?</p>