helper functions for hashing strings and objects
built