appending to .toString() method to ipList and hostList objects