Returns sliced string from start index to optional final index.
Returns sliced string from start index to optional final index. Throws an exception if input array values' length is less than 2 or greater than 3. First element of "values" is string to be sliced, second element is start index to slice, third element is a length meaning number of characters to return. A negative start index starts backwards from the end of the string. A negative length means to stop length many characters before the end.
sliced string.
(Since version ) see corresponding Javadoc for more information.