Fix exit string matching