Trim CIDR block before processing to avoid filter_var() errors on valid IP's with spaces.