Hash functions for NSString
Translations in the Mac version~