# Padding string with specific character?

**URL:** <https://forums.unrealengine.com/t/padding-string-with-specific-character/323903>\
**Category:** Character & Animation\
**Tags:** string, unreal-engine, question\
**Created:** [July 2, 2015, 10:45pm UTC](https://forums.unrealengine.com/t/padding-string-with-specific-character/323903 "2015-07-02T22:45:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiDri](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiDri](https://forums.unrealengine.com/u/MiDri)\
**Post date:** [July 2, 2015, 10:45pm UTC](https://forums.unrealengine.com/t/padding-string-with-specific-character/323903/1 "2015-07-02T22:45:53Z")

</div>

Is there a built in way to do this? Seems silly that the default padleft and pad right automatically assume you want to use spaces…

---

<div class="post-metadata">

**Author:** ![MiDri](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiDri](https://forums.unrealengine.com/u/MiDri)\
**Post date:** [July 2, 2015, 10:51pm UTC](https://forums.unrealengine.com/t/padding-string-with-specific-character/323903/2 "2015-07-02T22:51:31Z")

</div>

K, so yes there is for int and floats (using ToText()), but not for byte’s ToText()…

---

<div class="post-metadata">

**Author:** ![Burnrate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Burnrate](https://forums.unrealengine.com/u/Burnrate)\
**Post date:** [January 7, 2016, 10:35pm UTC](https://forums.unrealengine.com/t/padding-string-with-specific-character/323903/3 "2016-01-07T22:35:35Z")

</div>

What was the way you found to do this?

---

<div class="post-metadata">

**Author:** ![MiDri](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiDri](https://forums.unrealengine.com/u/MiDri)\
**Post date:** [January 20, 2016, 7:22am UTC](https://forums.unrealengine.com/t/padding-string-with-specific-character/323903/4 "2016-01-20T07:22:07Z")

</div>

If I remember correctly I converted byte to int then ToText().

---

<div class="post-metadata">

**Author:** ![Graphenes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Graphenes](https://forums.unrealengine.com/u/Graphenes)\
**Post date:** [April 30, 2019, 10:00am UTC](https://forums.unrealengine.com/t/padding-string-with-specific-character/323903/5 "2019-04-30T10:00:54Z")

</div>

I wanted this as well, I coded up the blueprints for a pad left, right and center. [- YouTube](https://youtu.be/e3sy-Xltv2A)

---

<div class="post-metadata">

**Author:** ![sandermann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sandermann/32/1157591_2.png) [@sandermann](https://forums.unrealengine.com/u/sandermann)\
**Post date:** [April 11, 2022, 10:16am UTC](https://forums.unrealengine.com/t/padding-string-with-specific-character/323903/6 "2022-04-11T10:16:16Z")

</div>

> **[Fill String with 0 on left | Unreal engine Code Snippet](https://dev.epicgames.com/community/snippets/yPA/fill-string-with-0-on-left)**
>
> Fill a string on the left side with 0 (or any other character)

---

<div class="post-metadata">

**Author:** ![Da\_Fox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Da\_Fox](https://forums.unrealengine.com/u/Da_Fox)\
**Post date:** [November 11, 2025, 9:14am UTC](https://forums.unrealengine.com/t/padding-string-with-specific-character/323903/7 "2025-11-11T09:14:02Z")

</div>

Thank you, man! 🙂
