docs: public static String extractHostname(final String host) {
          String extracted = host;
          if (containsUserName(host)) {
              extracted = host.substring(host.indexOf("@") + 1, host.length());
          }
  
          if (containsPort(extracted)) {
              extracted = host.substring(0, host.indexOf(":"));
          }
  
          return extracted;
      }