Created a hashAll utility function based on city hash