I have left everything as it is and i get the error message

Script error : expected expression !.
$a=function{$wksta,5,2} ;take last two char

HELP!