I think there might be a bug in $matchtok

$matchtok(ab cd ef,c,1,32)

returns cd

it seems to be matching any part of the string
regardless of space delimiter.