The substr method extracts parts of a string.
System.String substr( start, length);
start
Index position where to start the extraction. First character is 0.
length
Number of characters to extract. If omitted, it extracts until the end of the string.
Returns the extracted string object, otherwise, empty string.
If start parameter is positive and greater than, or equal, to the length of the string, substr method returns an empty string. If start parameter is negative, substr method uses it as a character index from the end of the string. If start parameter is negative or larger than the length of the string, start is set to 0
Member of string.