> import string > sServer = "SERVER 1" > string.translate(string.ljust("", len(sServer)), "=", " ") > uline = '=' * len(sServer) Does that do what you want? Alan g. Author of the 'Learning to Program' web site http://www.freenetpages.co.uk/hp/alan.gauld