Thankyou all for helping me out here, i used

set %temp.channel $gettok($chan,1,35)

And it works fine. Keep up the good work!!! smile