code: public HString trim(@NonNull Predicate<? super Annotation> toTrimPredicate) {
        return trimRight(toTrimPredicate).trimLeft(toTrimPredicate);
     }
docs: Trims tokens off the left and right of this HString that match the given predicate.
  
  @param toTrimPredicate the predicate to use to determine if a token should be removed (evaulate to TRUE) or kept
  (evaluate to FALSE).
  @return the trimmed HString