modified string matching to only check if a string exists, not find it. is faster