code: public static String parseServers(String zookeepers) {
      int slashIndex = zookeepers.indexOf("/");
      if (slashIndex != -1) {
        return zookeepers.substring(0, slashIndex);
      }
      return zookeepers;
    }
docs: Parses server section of Zookeeper connection string