# How to add STRING ?

**URL:** <https://forums.unrealengine.com/t/how-to-add-string/54404>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 3, 2016, 7:46pm UTC](https://forums.unrealengine.com/t/how-to-add-string/54404 "2016-02-03T19:46:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d907f7f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d907f7f0](https://forums.unrealengine.com/u/anonymous_user_d907f7f0)\
**Post date:** [February 3, 2016, 7:46pm UTC](https://forums.unrealengine.com/t/how-to-add-string/54404/1 "2016-02-03T19:46:20Z")

</div>

Hi, i have 3 variables. I wan add this.  
Ex.  
New Var 5 = Hello  
New Var 4 = BIG  
New Var 3 = World

Result = Print String “Hello BIG World”

 ![add name.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/5/d35120a6c34c7c4981109fb4d108d1cccc2ff1a4.png)

---

<div class="post-metadata">

**Author:** ![Mhousse1247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mhousse1247](https://forums.unrealengine.com/u/Mhousse1247)\
**Post date:** [February 3, 2016, 7:58pm UTC](https://forums.unrealengine.com/t/how-to-add-string/54404/2 "2016-02-03T19:58:39Z")

</div>

You can use “Append” node for that :

 ![0150.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/0/8c025305417ee09bc5d9c9c6ce0798a87c3a5a21.png)

---

<div class="post-metadata">

**Author:** ![DEDRICK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DEDRICK](https://forums.unrealengine.com/u/DEDRICK)\
**Post date:** [February 3, 2016, 7:58pm UTC](https://forums.unrealengine.com/t/how-to-add-string/54404/3 "2016-02-03T19:58:47Z")

</div>

Append String, also Build String which is a bit more feature filled than append but requires a type

> **[String](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Utilities/String/)**
>
> String

---

<div class="post-metadata">

**Author:** ![Cerapa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cerapa](https://forums.unrealengine.com/u/Cerapa)\
**Post date:** [February 3, 2016, 7:58pm UTC](https://forums.unrealengine.com/t/how-to-add-string/54404/4 "2016-02-03T19:58:55Z")

</div>

Append them together.

---

<div class="post-metadata">

**Author:** ![Master\_Kenth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Master\_Kenth](https://forums.unrealengine.com/u/Master_Kenth)\
**Post date:** [February 3, 2016, 10:10pm UTC](https://forums.unrealengine.com/t/how-to-add-string/54404/5 "2016-02-03T22:10:51Z")

</div>

Append is the semi-correct way.

![2016-02-03 22_41_33-ContentExamples - Unreal Editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/7/2f7c0f91540476d09fca36e2943de11c1e4ceb90.png)

_ **However** _, note that the strings are directly attached, with no space in between (which judging by the post is what you want). For that you could simply add multiple pins to the Append node and fill every other slot with just a space character in it.

For some complementary string building, BuildString is an useful node to represent variables with filler text in between.

 ![2016-02-03 22_44_09-ContentExamples - Unreal Editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/e/d1e9e7c1d57be5a2d8733117db37adc737751236.png)

Another reply mentioned this as a possible solution, however, as also pointed out, there is no version of BuildString that actually takes a string itself. No real biggy, you can just use a combination of BuildString and Append to achieve the desired string. It’s nifty for minor string building stuff, but once you need a string with several more variables in it, chaining together several BuildString nodes can be quite hard to maintain. Therefore I’d also like to mention the most flexible and compact node (imo), **FormatText**.

 ![2016-02-03 22_47_23-ContentExamples - Unreal Editor.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/e/8e260eb16625a336a11d4cad79f776723b8ba89d.png)

For FormatText you provide a format-string, where any entry between two { curly brackets } will be exposed as a blueprint FText pin. Super useful, since most basic object types (e.g. Int, Float, Bool, even other strings) can easily be converted to an FText representation, even with added formatting such as specifying the number of decimal places for floats (do you want to show 10.52 or just 10.5 or just 10 or round to 11? easy). [FTexts are also recommended to be the type for any strings displayed to the user](https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/StringHandling/index.html) as they they are designed to integrate with localization and can be displayed in various ways depending on the user. Even if you are not using localization it can’t hurt that bad. 🙂
