4 is our start point
25 is our end point
To find the length of any string, you need to use .length property, here is an example
Slice is almost same as Substring, but here you can specify negative number too
in above example you see can see the position of word "learning" within that sentence
You also can sepcify the start index in case there are multiple location of string you are looking for.