# Appending 3-digits number to a string

**URL:** <https://forum.dynamobim.com/t/appending-3-digits-number-to-a-string/40920>\
**Category:** Revit\
**Created:** [September 22, 2019, 9:01am UTC](https://forum.dynamobim.com/t/appending-3-digits-number-to-a-string/40920 "2019-09-22T09:01:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![waelajam](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@waelajam](https://forum.dynamobim.com/u/waelajam)\
**Post date:** [September 22, 2019, 9:01am UTC](https://forum.dynamobim.com/t/appending-3-digits-number-to-a-string/40920/1 "2019-09-22T09:01:20Z")

</div>

Hi,

I wrote a simple python script which should be able to append 3-digits numbers to a string. I used a for loop that goes through the list items and sequentially adds them to the string. But the number list is being broken down to 1-digit numbers while I want to add the -digits as a whole to the string.  
How can I fix the script so that the resulted list can be so:  
AR\_LP\_0011405  
AR\_LP\_0011406  
AR\_LP\_0011407

.

 ![01](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/e/3e8540b4828db500e8e8b814ea18c5028302afec.jpeg) ![02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/a/4ab09ef968a1a00f05ed64039779f5741d1c1c34.jpeg)

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [September 22, 2019, 10:14am UTC](https://forum.dynamobim.com/t/appending-3-digits-number-to-a-string/40920/2 "2019-09-22T10:14:57Z")

</div>

you can stitch two strings together with the + node  
don’t know the Python code for it

---

<div class="post-metadata">

**Author:** ![waelajam](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@waelajam](https://forum.dynamobim.com/u/waelajam)\
**Post date:** [September 22, 2019, 10:17am UTC](https://forum.dynamobim.com/t/appending-3-digits-number-to-a-string/40920/3 "2019-09-22T10:17:11Z")

</div>

Thanks.  
I need the python script as what you see in the script is only the first step of what am going to write.

---

<div class="post-metadata">

**Author:** ![JowennLua](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jowennlua/32/79854_2.png) [@JowennLua](https://forum.dynamobim.com/u/JowennLua)\
**Post date:** [September 22, 2019, 1:34pm UTC](https://forum.dynamobim.com/t/appending-3-digits-number-to-a-string/40920/4 "2019-09-22T13:34:08Z")

</div>

HI @waelajam ,

See animated gif. This will help you debug the problem. I believe you need to use input as List and not as String. Code looks correct just need to check the input.

 ![UseInputAsListNotString](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/d/bdcc9425053847fa5fd81e603c321f5041f42cce.gif)

Cheers,  
Jowenn
