code: public static String remove(String s, String l, String t) {
      if (s.startsWith(l)) {
        s = s.substring(l.length());
      }
      if (s.endsWith(t)) {
        s = s.substring(0, s.length() - t.length());
      }
      return s;
    }
docs: This removes the lead/trailing strings from a string.
  
  @param s Source string
  @param l Leading string to remove
  @param t Trailing string to remove
  @return String without the lead/trailing strings