docs: public CharBuffer put (String str, int start, int end) {
          int length = str.length();
          if (start < 0 || end < start || end > length) {
              throw new IndexOutOfBoundsException();
          }
  
          if (end - start > remaining()) {
              throw new BufferOverflowException();
          }
          for (int i = start; i < end; i++) {
              put(str.charAt(i));
          }
          return this;
      }