// trim the host name
if (StringUtils.isNotEmpty(host)) {
host = host.trim();
}
final String portKey = key.replace(LoadBalancerConstants.HOST, LoadBalancerConstants.PORT);
if (subset.containsKey(portKey)) {
int port = subset.getInt(portKey);
// save host and port for future creation of server list
hostAndPortPairs.add(Pair.of(host, port));
}
}