pub fn is_host_port(string: String) -> Result<(), String>