The token should always be sent as the last parameter, or at least after the $1text parameter.
From McMaster Mechanical Engineering UG Lab Wiki
The token should always be sent as the last parameter, or at least after the $1text parameter.