[Raymond Hettinger] > 1) The "chars" variable can be eliminated and the "while chars" and > "c=chars.pop(0)" sequence simplified to just: > for c in reversed(str): Actually, that should have been just: for c in str: . . . Raymond