The index to the beginning of the specified portion of stringObj.
optional
end: number
The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
If this value is not specified, the substring continues to the end of stringObj.