Ok... this is the last time. You can put a line: del replacements just after the for loop, and save a tiny amount of memory. This might be a useful optimisation if you're dealing with a very large list of words to replace. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net