today I was wondering if there is a better solution perform the following code sample.
string keyword = \" abc, foo , bar\"; string match = \"foo\"; str
I would suggest using regular expressions on the original string, looking for the pattern "any number of spaces followed by one of your delimiters followed by one or more spaces" and remove those spaces. Then split.