Is the liquid in the thermometer is silvewr color or red color? Mercury is silver.
Anyway adding active carbon to your filter is the best you can do other then nuking the tank.
Btw if you intend to throw away the sand, pls check with local authority as you are now disposing 'toxic material"....
HTH