Toothpaste is an abrasive, true, but it's not that great to revitalise badly fogged headlight lens. Sanding is the more constructive way to go, and you can find plenty of good and also not so great demonstrations on YouTube. The quick fix, magic solutions also on their forget about you will waste time and end up with a result that's frankly rubbish. No one I have known, with degraded lens, has ever said toothpaste was worth a shot.