Use strpos for faster event output filtering