Text Concatenator
Glue up to five text fields into one string
- STRING
Sometimes you don't want a prompt-building system, you just want to stick a few pieces of text together - a style fragment here, a subject there, a quality-tags suffix on the end - into one string. That's the entire job of TextConcatNode: up to five optional text inputs go in, one joined string comes out, with whatever delimiter you choose stitched between the pieces.
The README credits it as based on the TextConcat node from mikey_nodes (bash-j), which is a well-known prompt-utility pack in its own right - if you're already running mikey_nodes, you likely have the same functionality under a different name and don't need to add this one on top of it. If you're not, this gives you the same trick without pulling in a whole extra pack.
The appeal here is reusability. Instead of retyping one long prompt every time you tweak something, you keep a "style" box, a "subject" box, a "quality tags" box as separate text widgets and let this node assemble them. Change one piece without touching the others, and the assembled string updates automatically downstream.
The inputs and outputs that matter
One required field, five optional ones:
delimiter(default a single space) - what gets inserted between each non-empty piece as they're joined. Leave it as a space for prose-style prompts, switch to a comma if you're gluing together tag-style fragments, or a newline if you want each piece on its own line.text1throughtext5(all optional, default empty) - the pieces themselves. You don't need to fill all five; leave whichever ones you're not using blank.
The output is a single STRING, which you can wire into a CLIP Text Encode node, a Save Image filename prefix, or anywhere else downstream that takes text.
How to install it
Via ComfyUI Manager, search "DemonAlone-nodes-ComfyUI." Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/DemonAlone/SimpeStringGenerator_ComfyUI
then restart. Note the clone URL keeps the pack's original name, SimpeStringGenerator_ComfyUI, while it now presents itself as "DemonAlone-nodes-ComfyUI" - same repository, both names show up depending on where you're looking. No models involved, nothing to download beyond the clone itself.
Common issues & troubleshooting
Output has unexpected spaces (or none) between pieces. The delimiter defaults to a single space - if you wanted commas or newlines between fragments, you need to set that explicitly rather than assume it.
You only need two or three of the five slots. That's fine - text1–text5 are all optional, and there's no requirement to fill every one. Wire only what you need.
Nothing to search for if it misbehaves. This is a small personal pack with essentially no community footprint of its own, so if the joined output looks wrong in a way that isn't explained by the delimiter, the fastest path to an answer is the node's own source rather than a forum search - or, if you want a more battle-tested version of the same idea, mikey_nodes' original TextConcat.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| delimiter | STRING | — | |
| text1opt | STRING | — | |
| text2opt | STRING | — | |
| text3opt | STRING | — | |
| text4opt | STRING | — | |
| text5opt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |