null termination to hash string