Look at my text please.
If I follow your directions it will be two names in hits array.
Not only mine. "Vladimir" will be also there. But without last character (myName.length === 7 !="Vladimir".length)
The first character is same for both of names. It is "V".
Please fix up logic of your program's direction!
var text ="Hey! My name is Valeria.\
I have a boyfiend. He's\
name is Vladimir. We've \
been together sinse I was\
16. I had been studing at\
school when we met each\
other. We are great couple.";
var myName = "Valeria";