Why dont you follow same naming conventions for Symbol name in your instrument data for SENSEX, BANKNIFTY, NIFTY etc.
For example for BANKNIFTY
"token": "44150",
"symbol,": "BANKNIFTY16OCT2459300CE",
"name": "BANKNIFTY",
"expiry": "16OCT2024"
For NIFTY
```
"token": "54543",
"symbol": "NIFTY26SEP2424950PE",
"name": "NIFTY",
"expiry": "26SEP2024",
But for sensex its
```
"token": "1126672",
"symbol": "SENSEX24O1885700CE",
"name": "SENSEX",
"expiry": "18OCT2024",
Ideally the name of SENSEX should be SENSEX24OCT2485700CE
Its totally random for sensex not respecting uniformity.