How can I make an in-game search engine similar to Scribblenauts

Can someone please help, I want to make a game with a Scribblenauts style search engine where I search for a character and it will spawn. So far I have made 28 characters that are prefabs with different weapons and abilities but I need a script that will allow me to search for the characters! So for example, when I use a search engine to search for “Ninja”, It will spawn my Ninja prefab. I’m not sure how to do it so please help.

Make a script with a array that contains the name and the prefab for every one. Draw a GUI page for every character and when the button is pressed, instantiate. You can use Regexp to seach through a character