This worked for me to achieve the extension of this problem set


#1

if (text[i] === myName[0] && text[i+1] == myName[1]) {

By just adding the extra condition in if statement..I achieved to only get the name that I want.
but this works up to two letters only..!
thanks.