>> Is there a 'substitute' function in python. > You can do this with the translate() method of a string. That was the clever stuff I was trying to remember, not a module after all, a method! Thanks Kent, Alan G.