# Use StringJoin to join styled characters?

**URL:** <https://community.wolfram.com/t/use-stringjoin-to-join-styled-characters/13573>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [January 24, 2019, 2:43am UTC](https://community.wolfram.com/t/use-stringjoin-to-join-styled-characters/13573 "2019-01-24T02:43:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![depdahowdy2](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@depdahowdy2](https://community.wolfram.com/u/depdahowdy2)\
**Post date:** [January 24, 2019, 2:43am UTC](https://community.wolfram.com/t/use-stringjoin-to-join-styled-characters/13573/1 "2019-01-24T02:43:06Z")

</div>

End result will be the PNG below, but when I use StringJoin to join Styled Characters, error pop up StringJoin::string: String expected at position 1 in StringJoin[M]. Possible issue is StringJoin works only with explicit strings, while TreeForm[Style[“M”,Red]] shows it is not a String and thus cannot use StringJoin, how could I make it?

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [January 24, 2019, 4:29am UTC](https://community.wolfram.com/t/use-stringjoin-to-join-styled-characters/13573/2 "2019-01-24T04:29:57Z")

</div>

Mia,

You have to convert the `Style` to a `StandardForm` `String` before `StringJoin`.

```
ToString[Style[#, RandomColor[], 30], StandardForm] & /@ Alphabet[] // StringJoin

```

![letters.jpeg](https://global.discourse-cdn.com/wolfram/original/2X/b/bc9044528ba8e0c1ddbf39ed85a11e079c86b0df.jpeg)
