fixing strpos check