  private static String substr(String str, int s, int e) {
    return (s >= e) ? null : str.substring(s, e);
  }