in that case this line should be removed:
if (: == $left(%x,1)) $gettok(%x,1-,58)
it only serves to make the script open to potential exploitation.