You can't give the same `MCStringRef` to `MCStringDivideAtIndex()`, because in the end you would lose the reference to which `p_params` pointed beforehand; you need a temporary value, and `MCValueAssign()` it back after the call.