code: public CharSequence trim(CharSequence sequence, TrimOption trimOption) {
          return trim(sequence, trimOption, SpanCondition.SIMPLE);
      }
docs: Returns a trimmed sequence (using CharSequence.subsequence()), that omits matching elements at the start or
  end of the string, using the trimOption and SpanCondition.SIMPLE. For example:
  
  <pre>
  {@code
  
  new UnicodeSet("[ab]").trim("abacatbab", TrimOption.LEADING)}
  </pre>
  
  ... returns {@code "catbab"}.
  
  @param sequence
  the sequence to trim
  @param trimOption
  LEADING, TRAILING, or BOTH
  @return a subsequence