fixed gethash for strings with length 1