Here is 1 way to do it without using an array. You can use the text as1 text or maybe break it down by word length to optimize the search if needed. You could then search the text based on word length.
This example used a space as a seperater but the same would apply for commas. It’s import that the text is consistent. It must be something like ,apple,orange,grape,