result = string.slice(beginslice [,endSlice]);
Extract a section of a string and return a new string. The section to extract is defined by beginSlice which is the zero-based index at which to begin extraction. and endSlice which is the zero-based index at which to end extraction. If endSlice is omitted, the function extracts to the end of the string.