You would use it like this.
Normally you could do;
My_string=""
My_tokens = "A,B,C,C"
If condition met then set string My_string to tokenat(My_tokens,0,",").
My_string = "A"
settokenat() and changetokenat() would work the same, but on the token string itself.
If condition met then set string My_tokens settokenat(My_token, 0,",","Z").
My_tokens = "Z,B,C,C"
If condition met then set string My_tokens changetokenat(My_token,"C",",","X").
My_tokens = "Z,B,X,X"