“
“MrsJemsmrsam”
Jemsmrsam”
Mrs
Searching prefix string, which made the first N specific characters of the string
Found
‘Mrs’ not appear else where in the string
False
Length 3
‘Mrs’
“
“MrsJemsMrsam”
Jems
am”
Mrs
Mrs
Again 'Mrs' appear in the string
Searching prefix string, which made the first N specific characters of the string
Found
True
Length 3
‘Mrs’
w3resource.com