hashstring function added