get a unique short hash of a string