# Replacing multiple items in a string

**URL:** <https://forum.dynamobim.com/t/replacing-multiple-items-in-a-string/23963>\
**Category:** Lists-Logic\
**Created:** [July 20, 2018, 11:01am UTC](https://forum.dynamobim.com/t/replacing-multiple-items-in-a-string/23963 "2018-07-20T11:01:55Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [July 21, 2018, 9:36am UTC](https://forum.dynamobim.com/t/replacing-multiple-items-in-a-string/23963/21 "2018-07-21T09:36:44Z")

</div>

@Vikram_Subbaiah can you please explain the logic behind Why do i need to use Levels?

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 24, 2018, 11:15am UTC](https://forum.dynamobim.com/t/replacing-multiple-items-in-a-string/23963/22 "2018-07-24T11:15:42Z")

</div>

> [@ROY](#):
>
> Why do i need to use Levels?

You’ll need lacing and/or levels to specify how (and which) elements in lists of unequal lengths are to work with each other.

A basic example below shows that on using Level @L2 the sublists are operated upon

 ![levels](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/90c3bc95d4ca1229f5438a34fa6d9211c01dce89.png)  
Note: In this case, the same can be obtained by changing Lacing to Longest

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [July 31, 2018, 5:30pm UTC](https://forum.dynamobim.com/t/replacing-multiple-items-in-a-string/23963/23 "2018-07-31T17:30:24Z")

</div>

thanks @Vikram_Subbaiah

---

<div class="post-metadata">

**Author:** ![zalgirietis.minde](https://avatars.discourse-cdn.com/v4/letter/z/dbc845/32.png) [@zalgirietis.minde](https://forum.dynamobim.com/u/zalgirietis.minde)\
**Post date:** [March 19, 2020, 9:56pm UTC](https://forum.dynamobim.com/t/replacing-multiple-items-in-a-string/23963/24 "2020-03-19T21:56:33Z")

</div>

@Ewan_Opie, I have used your script, but I can’t get the right results. I guess It’s something with lacing.  
Could you please take a look at my nodes and help me to find a solution? Thanks.

 ![2020-03-19 13_53_17-Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/d/7d2942f29102e9963688e74e9ef2d1f1c9fb7fae.png)

[Previous page](https://forum.dynamobim.com/t/replacing-multiple-items-in-a-string/23963.md?page=1)
