I always find it's quite fun to compare how we get the same results using different approaches and sgb's Monday Freebie is a good example. To obtain the same result I would do, for example using VBScript and assuming SSN is the Social Security number, SSN = String(8 -Int(Log(SSN)/Log(10)),"0") & SSN .redstar.