Erase not removing item in array that has says exists

I don’t know at all. Do you check if input “item” is a string?

Other possible solve, too more efficient, is doing a .find() to return the index, and erase it with .remove_at()