Terminate string
Useproper hash function