Trim tokenized strings in websocket namespace

Issue: SPR-11307