Support hashing by numbers and by strings