fixes #2285 - subnet validation - length of addresses, strip whitespace and fix common typos