code: public static String getAt(String text, Range range) {
          RangeInfo info = subListBorders(text.length(), range);
          String answer = text.substring(info.from, info.to);
          if (info.reverse) {
              answer = reverse(answer);
          }
          return answer;
      }
docs: Support the range subscript operator for String
  
  @param text  a String
  @param range a Range
  @return a substring corresponding to the Range
  @since 1.0