Use strpos instead of preg_match

Use strpos instead of preg_match, since we aren't actually using regular expressions, and strpos is more performant