You will want to split your string by commas and then search the resulting strings.
string csvList = "shop,dell,image,just,just do,file,just,do,shop";
string search = "jus"; // your search string goes here
var splitResults = csvList.Split(',').ToList();
// improvement: cache SplitResults once, and retrieve it from cache on every search
var searchResults = splitResults.Where(x => x.StartsWith(search)).Distinct();
You can change the last line to use Contains
to search within words or use StartsWith(search, StringComparison.OrdinalIgnoreCase)
to ignore case where searching.
In the case of a very large input, you should be caching the List<string> splitResults
so that you have the search items ready to go. If you have high volume, you definitely do not want to be splitting the csvList
every single time that it is searched.