I recently faced an inconsistency with the substring(IntRange)
the documentation says that endIndex is excluded but in really it is included.
I went to see the code behind with intellij and it appears that it is a shortcut to the substring(int, int) with endIndex+1.
Which one is correct? code or documentation?