i like the editor idea, then you wouldnt have to worry about delimeters and tokens, just like write in an edit box \"echo $did($dname,).seltext\"