Added custom toString for Hash and Method