fixes #2285 - creating subnets - validate length of addresses, strip whitespace and fix common typos