Chris Were wrote: > Or you could do the following if you don't know how many characters > the string will have: Not sure what you mean by that; the "while s" construct would have run until s became empty (equivalent to "while len(s) > 0"). -- Regards, Daryl Tester, IOCANE Pty. Ltd.