String.substring( string str, int startIndex, int endIndex ) Get a substring from `str` starting from `startIndex` to just before `endIndex` @return string String.substring.return @param string str the string to get a substring from @param int startIndex starting index @param int endIndex ending index (exclusive, not included in the result) @example String.substring( "HelloWorld", 2, 6 ) "ello" NOTE: `endIndex` is exclusive, so it is not included in the resulted substring. In order to include the last character, `endIndex` must be the length + 1. Exclusive `endIndex` makes it easy to get a substring with a specific Length: substring( str, n, n + len ) which means the substring starting from index = n with the length of `len`
@author mathphysicscomputer @authorEmail math.physics.computer@gmail.com