s.substr( i, len );
Today I saw the usage of substr when I was looking for the largest palindrome in a string, and I felt so important!
In fact, it intercepts a string of length len starting from index i in the string.
For example: s="ttabcdefg";
str = s.substr(2,3); //str output is abc