({{, "(Subscript[s, 1])"<>"(Subscript[s, 2])"<>…, (RefLink[StringJoin, paclet:ref/StringJoin])["(Subscript[s, 1])","(Subscript[s, 2])",…], or (RefLink[StringJoin, paclet:ref/StringJoin])[{"(Subscript[s, 1])","(Subscript[s, 2])",…}]
yields a string consisting of a concatenation of the (Subscript[s, i]). }})

OpenersNotesSection(Spacer1)Details

(RefLink[StringJoin, paclet:ref/StringJoin]) has attribute (RefLink[Flat, paclet:ref/Flat]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (11)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Join strings:

"abcd"<>"ABCD"<>"xyz"

Use (RefLink[InputForm, paclet:ref/InputForm]) to show string quotes:

InputForm[%]

All lists are ignored:

StringJoin[{{"AB","CD"},"XY"}]

OpenersExampleSection1(Spacer1)Scope  (3)

(RefLink[StringJoin, paclet:ref/StringJoin]) works with special characters:

"αβγ"<>"⊕⊗"<>" ↵"

Join strings, with a newline in between:

"one"<>"\n"<>"two"

(RefLink[StringJoin, paclet:ref/StringJoin]) preserves formatting information embedded in strings:

"red"<>"blue"

OpenersExampleSection2(Spacer1)Applications  (4)

Iteratively join a string to its reverse:

NestList[#<>StringReverse[#]&,"AB",5]

Find trigrams in a string:

data=Partition[Characters["aabcaabc"],3,1]

StringJoin/@data

Join a list of words, after inserting spaces in between:

Riffle[{"dog","cat","sheep","cow"}," "]

StringJoin[%]

Create a Champernowne number:

ToExpression[StringJoin["0.",ToString/@Range[30]]]

OpenersExampleSection3(Spacer1)Properties & Relations  (1)

(RefLink[StringJoin, paclet:ref/StringJoin]) acts as a kind of inverse to (RefLink[Characters, paclet:ref/Characters]):

Characters["abcdefg"]

StringJoin[%]

OpenersExampleSection4(Spacer1)Possible Issues  (1)

(RefLink[StringJoin, paclet:ref/StringJoin]) works only with explicit strings:

"item "<>456

Use (RefLink[ToString, paclet:ref/ToString]) to convert to a string:

"item "<>ToString[456]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Join, paclet:ref/Join])  ▪  (RefLink[StringRiffle, paclet:ref/StringRiffle])  ▪  (RefLink[StringRepeat, paclet:ref/StringRepeat])  ▪  (RefLink[StringExpression, paclet:ref/StringExpression])  ▪  (RefLink[Row, paclet:ref/Row])  ▪  (RefLink[Characters, paclet:ref/Characters])  ▪  (RefLink[StringInsert, paclet:ref/StringInsert])  ▪  (RefLink[StringReplacePart, paclet:ref/StringReplacePart])  ▪  (RefLink[StringPartition, paclet:ref/StringPartition])  ▪  (RefLink[StringTemplate, paclet:ref/StringTemplate])  ▪  (RefLink[FileNameJoin, paclet:ref/FileNameJoin])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Operations on Strings, paclet:tutorial/OperationsOnStrings])}, {▪(RefLinkPlain[Characters in Strings, paclet:tutorial/CharactersInStrings])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[String Manipulation, paclet:guide/StringManipulation])}, {▪(RefLinkPlain[String Operations, paclet:guide/StringOperations])}, {▪(RefLinkPlain[Character Operations, paclet:guide/CharacterOperations])}, {▪(RefLinkPlain[Text Generation, paclet:guide/TextConstruction])}, {▪(RefLinkPlain[Wolfram Language Syntax, paclet:guide/Syntax])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-FastIntro.png(Spacer1)Fast Introduction for Programmers: Strings, http://www.wolfram.com/language/fast-introduction-for-programmers/strings/])}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/11-strings-and-text.html])(WebLink[: Strings and Text, https://www.wolfram.com/language/elementary-introduction/11-strings-and-text.html])}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/42-string-patterns-and-templates.html])(WebLink[: String Patterns and Templates , https://www.wolfram.com/language/elementary-introduction/42-string-patterns-and-templates.html])}, {(WebLink[DocumentationFooterIconsRelatedLinks-NKS.png(Spacer1)NKS|Online, http://www.wolframscience.com/nksonline/index/search.cgi?SearchIndex=StringJoin]) ((WebLink[A New Kind of Science, http://www.wolframscience.com/nksonline/]))}})}})