substringSafe

fun String.substringSafe(fromIndex: Int, toIndex: Int = lastIndex): String