title: Comparing long strings by their hashes
body: <p>Trying to improve the performance of a function that compares strings I decided to compare them by comparing their hashes. 
  So is there a guarantee if the hash of 2 very long strings are equal to each other then the strings are also equal to each other?</p>