code: public static String toSocketAddressString(String host, int port) {
          String portStr = String.valueOf(port);
          return newSocketAddressStringBuilder(
                  host, portStr, !isValidIpV6Address(host)).append(':').append(portStr).toString();
      }
docs: Returns the {@link String} representation of a host port combo.