Better way to create dictionary keys
<p>I have a list of objects which I need to store in a dictionary.  A property of these objects is title, and this is what I am using as the key when I store the object in the dictionary.  I process the title first so that I can use it as the key by removing spaces and truncating it to 50 characters.</p>

<p>However some of the titles are quite long, and the first 50 characters are exactly the same as another title.  Because of this the keys are being screwed up.  Can anyone advise a better method for doing this.  I was thinking about encoding the title in some way and then using that?  </p>
