@NotNull
  public Substring trimRight() {
    int end;
    for (end = myEndOffset - 1; end > myStartOffset && myString.charAt(end) <= '\u0020'; end--) { /* empty */ }
    return createAnotherSubstring(myStartOffset, end + 1);
  }
@NotNull
  public Substring trimRight()