Enhancement/17343

I would add a comment about what's going on here. How you're cutting off the string's `[` and `]`