Strip Quotes
Peel the quotes off a string so the rest of your workflow stops choking
- text
Somewhere between a JSON parser and your sampler, strings pick up quotation marks and nobody agreed on what to do about them. Strip Quotes exists for exactly that moment: one text in, the same text out with its surrounding quotes gone. It's a five-line node, and it'll save you the occasional baffling "why doesn't this filename match anything" hour.
How it works
One input, text, and one output, also called text. The logic is deliberately conservative. It strips leading/trailing whitespace, then checks whether the first and last characters are a matching pair of quotes - both " or both '. If they are, they come off. So:
"hello"→hello'hello'→hello"hello'→"hello'"(unmatched, left alone)hello→hello(nothing to do)
It will not strip one quote, won't touch quotes that aren't at the very edges, and won't be fooled by a quoted string with trailing junk. That restraint is the feature: you can run it on arbitrary text and be confident it only does what it's supposed to.
Where you'd use it
Feeding text downstream that arrived wrapped - values pulled out of JSON or a CSV parser, strings read from a file that were stored quoted, or output from any tool that formats its results like Python repr. Slap it before a comparison (String Compare from the same pack, say), before a filename is used to look something up, or before text goes into a prompt where stray quotes would shift meaning.
Install
Part of ComfyUI-TinyBee. ComfyUI Manager → search ComfyUI-TinyBee → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/TinyBeeman/ComfyUI-TinyBee
It lives under 🐝TinyBee/Strings. Standard library only; the pack's pillow/jsonata requirements don't touch this node.
Gotchas
Honestly, not much to trip on - which is the point of a node this small. The two edges to remember: it needs a matched pair of quotes, so 'abc" stays as-is, and it strips whitespace as part of the process, so " hello " becomes hello, not hello . If you need only the quotes gone and the padding preserved, this isn't the tool - but in practice the whitespace trim is usually what you wanted anyway.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |