Attempting to find an object based off of two words

Hey hey! I’m attempting to make a script that can detect a model that has the same two words at the start. Right now I’m using string.split() for this to get my two words. I was wondering is there any services I can call for this (Using two words to detect a model)

For the public record, I solved this. Here is what I used to assist me in this scenario: