reduce strpos() call