pub fn is_hash<T>(string: T) -> Result<(), String>
where T: AsRef<str> + Display,