Nodes/RuiquNodes for ComfyUI/String Concate 1 Parallelly
ComfyUI Node

String Concate 1 Parallelly

Wrap one string with a shared prefix and suffix

By ruiqutech·Created 2 years ago·Updated 2 years ago· 0
String Concate 1 Parallelly
    • text_1
    prefix
    suffix
    join_with_spacetrue
    text_1

    The node's display name is "String Concate 1 Parallelly" - the "1" is honest about scope. This is the single-lane member of a three-node family (StringConcat1/3/6) that all do the same thing: wrap one or more strings with a shared prefix and suffix. With just one text input, StringConcat1 is the simplest unit - everything the wider variants do, they do by repeating this same operation across more lanes at once.

    What it does

    Given a prefix, a suffix, and one string (text_1), it produces one output (text_1) built roughly as prefix + [space] + text_1 + [space] + suffix - whether that space actually appears depends on join_with_space.

    • prefix, suffix (STRING) - the shared text wrapped around your input.
    • join_with_space (BOOLEAN, default true) - toggles whether a literal space sits between the pieces, or they get concatenated directly with nothing between them.
    • text_1 (STRING, optional) - the string being wrapped.
    • Output: text_1 (STRING) - the wrapped result.

    Where you'd reach for it

    The obvious use is appending or prepending something you want consistent across many strings without hardcoding it into each one - a shared quality tag or trigger word onto a caption, a consistent path segment onto a filename, a fixed label around a value. Keeping the prefix/suffix as separate inputs rather than baking them into text_1 means you can change the wrapper once and have it apply everywhere this node is used, instead of hunting down every string that needs updating.

    When to skip this node for its siblings

    If you find yourself chaining several StringConcat1 nodes with the same prefix and suffix wired into each one - that's the signal to grab StringConcat3 or StringConcat6 instead. Those apply the identical prefix/suffix/join logic across three or six independent text lanes in a single node, which is exactly the repetition StringConcat1 alone forces you into once you need more than one string wrapped the same way.

    Installing it

    ComfyUI Manager: search RuiquNodes, install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/ruiqutech/ComfyUI-RuiquNodes
    

    then restart. No models or extra dependencies.

    Common issues

    Unexpected spacing (or lack of it) around your text. That's join_with_space - it defaults to true, inserting a literal space between prefix, text, and suffix. Turn it off if you need them jammed together with no separator, such as when building a filename or a path segment where a stray space would break things.

    Prefix or suffix missing from the output. They're optional with empty-string defaults - if left unwired, there's simply nothing to add, which is expected rather than a bug.

    Output looks identical to the input. If both prefix and suffix are empty and there's nothing around a single string, the output legitimately equals the input - there's no transformation happening because you haven't configured one.

    Categoryruiqu/string

    Inputs (4)

    NameTypeDefaultDescription
    prefixSTRING
    suffixSTRING
    join_with_spaceBOOLEANtrue
    text_1optSTRING

    Outputs (1)

    NameTypeDescription
    text_1STRING