yeah, stupid that i didn't think about the token identifiers, but will need to know the delimiter for that as well.

so a general structure would be
if $istok {
$remtok
;whatever
}