Hi Jack (et al), I can comment on a function but not the program :-) From what you say an ajStrCleanWhite which removes leading, trailing and excess whitespace from a string might do the trick. Author? :-) Alan