ComfyUI Node

Concat Text Strings Node

Stick two text strings together — the node you'll actually use more than you expect

By AhBumm·Created 2 years ago·Updated 3 months ago· 11
Concat Text Strings Node
    • text
    text_1
    text_2

    Concat Text Strings Node takes two text inputs and joins them end to end. That's it. That's the whole node - two inputs, one output, f"{text_1}{text_2}" under the hood. It's the kind of thing you'd assume ComfyUI's built-in nodes already do, and you'd be wrong, which is exactly why a pack like this ships one: text plumbing is the unglamorous 80% of working with LLM and prompt nodes.

    In this pack's world it earns its keep immediately. The API nodes return text - an LLM's rewritten prompt, a VLM's caption, an extracted URL - and almost always you want to combine that with something else: a fixed style prefix, a quality suffix, a second prompt fragment, a filename you're building. The pack's own workflow patterns show LLM output feeding a text node for post-processing, and this is the node that stitches fragments back together before they hit a text encoder or another LLM call.

    How it works

    There is no mechanism to speak of, and that's a feature. It concatenates text_1 and text_2 with nothing between them. Literally nothing. No space, no newline, no separator. That's the one behavior you must internalize: if you want "a dark forest, " + "at dusk" you have to include the trailing space in text_1 yourself. Expecting it to add a space for you is how you end up with "a dark forest,at dusk" and ten minutes of head-scratching.

    The inputs that matter

    • text_1 (STRING) - the first piece.
    • text_2 (STRING) - the second piece, appended directly to text_1.

    Output: text (STRING) - the joined result. Both inputs are defaultInput strings, so you can either type into the widgets or wire them from other nodes (which is the intended use - this is a mid-chain node, not a terminal one).

    Installing it

    Part of AhBumm/ComfyUI_BillBum_Nodes. ComfyUI Manager search "billbum", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/AhBumm/ComfyUI_BillBum_APIset_Nodes.git
    cd ComfyUI_BillBum_APIset_Nodes && pip install -r requirements.txt
    

    Restart ComfyUI. No dependencies beyond the pack's standard ones - this node is pure Python string handling.

    Where people get burned

    • No auto-separator. The classic: joining without a space/newline. Add your own separators.
    • Two inputs only. Need three pieces? Chain two of these nodes, or reach for a proper multi-input text node if you're doing serious prompt assembly.
    • It's not a list joiner. It concatenates two strings, full stop. If you want to merge many strings or join with commas, look at the pack's other text utilities (and for URL lists, the UrlExtract node's comma-joining).

    Honest verdict: you won't search this node out, but once it's installed you'll find yourself using it constantly to assemble prompts from parts. It's the pack's most boring node and one of its most useful.

    Categorystring processing

    Inputs (2)

    NameTypeDefaultDescription
    text_1STRING
    text_2STRING

    Outputs (1)

    NameTypeDescription
    textSTRING