public String getType() {
    return string.substring(0, slash);
  }
Return the Type of the MediaType, such as
 "text" for "text/plain"
crawler-commons/src/main/java/achecrawler/crawler/crawlercommons/util/MediaType.java