WOLFRAM

"s1"<>"s2"<>, StringJoin["s1","s2",], or StringJoin[{"s1","s2",}]

yields a string consisting of a concatenation of the s_(i).

Details

Background & Context

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Join strings:

Out[1]=1

Use InputForm to show string quotes:

All lists are ignored:

Out[1]=1

Scope  (4)Survey of the scope of standard use cases

StringJoin works with special characters:

Out[1]=1

Join strings, with a newline in between:

Out[1]=1

StringJoin preserves formatting information embedded in strings:

Out[1]=1

Join biomolecular sequences:

Out[1]=1

Applications  (4)Sample problems that can be solved with this function

Iteratively join a string to its reverse:

Out[1]=1

Find trigrams in a string:

Out[1]=1
Out[2]=2

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

Out[1]=1
Out[2]=2

Create a Champernowne number:

Out[1]=1

Properties & Relations  (1)Properties of the function, and connections to other functions

StringJoin acts as a kind of inverse to Characters:

Out[1]=1
Out[2]=2

Possible Issues  (1)Common pitfalls and unexpected behavior

StringJoin works only with explicit strings:

Out[1]=1

Use ToString to convert to a string:

Out[2]=2
Wolfram Research (1988), StringJoin, Wolfram Language function, https://reference.wolfram.com/language/ref/StringJoin.html (updated 2020).
Wolfram Research (1988), StringJoin, Wolfram Language function, https://reference.wolfram.com/language/ref/StringJoin.html (updated 2020).

Text

Wolfram Research (1988), StringJoin, Wolfram Language function, https://reference.wolfram.com/language/ref/StringJoin.html (updated 2020).

Wolfram Research (1988), StringJoin, Wolfram Language function, https://reference.wolfram.com/language/ref/StringJoin.html (updated 2020).

CMS

Wolfram Language. 1988. "StringJoin." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/StringJoin.html.

Wolfram Language. 1988. "StringJoin." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/StringJoin.html.

APA

Wolfram Language. (1988). StringJoin. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StringJoin.html

Wolfram Language. (1988). StringJoin. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StringJoin.html

BibTeX

@misc{reference.wolfram_2025_stringjoin, author="Wolfram Research", title="{StringJoin}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/StringJoin.html}", note=[Accessed: 19-June-2025 ]}

@misc{reference.wolfram_2025_stringjoin, author="Wolfram Research", title="{StringJoin}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/StringJoin.html}", note=[Accessed: 19-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_stringjoin, organization={Wolfram Research}, title={StringJoin}, year={2020}, url={https://reference.wolfram.com/language/ref/StringJoin.html}, note=[Accessed: 19-June-2025 ]}

@online{reference.wolfram_2025_stringjoin, organization={Wolfram Research}, title={StringJoin}, year={2020}, url={https://reference.wolfram.com/language/ref/StringJoin.html}, note=[Accessed: 19-June-2025 ]}