code: public static Slice rightTrim(Slice utf8, int[] whiteSpaceCodePoints)
      {
          int position = lastNonMatchPosition(utf8, 0, whiteSpaceCodePoints);
          return utf8.slice(0, position);
      }
docs: Removes all white {@code whiteSpaceCodePoints} from the right side of the string.
  <p>
  Note: Invalid UTF-8 sequences are not trimmed.