substring

fun CharSequence.substring(startIndex: Int, endIndex: Int): String(source)

Materializes the selected UTF-16 range as an immutable String.