Just to let you know, you can use $gettok(%z,-1,32) instead of $gettok(%z,$gettok(%z,0,32),32) smile