Is the includes function for strings in javascript impacted by punctuation?

I am trying to figure out a bug where I am looking for a subset of text in an array of iconNames. My filter looks like this:

name = isName ? images[iconNames.filter(icon => icon.includes(string))[0]] : ""

this works for all the other strings like “Surfing” or “Sports”, and have icon names SurfingIcon or SportsIcon. My issue is with the string “Who has time for hobbies?” which has an icon name WhoHasTimeForHobbiesIcon. I know includes is supposed to grab subset strings and I feel like this qualifies. I am wondering if the ? is impacting this or if there is something else going on.

I could probably change the way this is filtered, but i just wound up manually setting it for the one string that doesn’t work.