@Nullable
    @VisibleForTesting
    InetAddress getIpFromFieldValue(String fieldValue) {
        try {
            return InetAddresses.forString(fieldValue.trim());
        } catch (IllegalArgumentException e) {
            // Do nothing, field is not an IP
        }

        return null;
    }
@Test
    public void trimFieldValueBeforeLookup() {
        final GeoIpResolverEngine resolver = new GeoIpResolverEngine(geoIpVendorResolverService, config, s3GeoIpFileService, metricRegistry);
        final String ip = "   2001:4860:4860::8888\t\n";

        assertNotNull(resolver.getIpFromFieldValue(ip));
    }