Does this have to be a string? If not, then it would be preferrable to use an object:

```js
tag: {
   threadId: threadId
}
```