code: public static String strip(Object o, String prefix, String suffix) {
          if (null == o) return "";
          String s = o.toString();
          s = s.trim();
          if (s.startsWith(prefix)) s = s.substring(prefix.length());
          if (s.endsWith(suffix)) s = s.substring(0, s.length() - suffix.length());
          return s;
      }
docs: Strip the prefix and suffix from an object's String representation and
  return the result
  <p/>
  <p>For example: </p>
  <p/>
  <pre><code>Object o = "xxBByy";
  String s = S.strip(o, "xx", "yy")</code></pre>
  <p/>
  <p>At the end above code, <code>s</code> should be "BB"</p>
  
  @param o
  @param prefix
  @param suffix
  @return the String result