code: public static String termPrefix(String term) {
      int i = term.indexOf(MtasToken.DELIMITER);
      String prefix = term;
      if (i >= 0) {
        prefix = term.substring(0, i);
      }
      return prefix.replace("\u0000", "");
    }
docs: Term prefix.
  
  @param term
  the term
  @return the string