Strip trailing whitespace
Iterate through networks and add just hosts, makes threading more efficient