# Combining strings to path doesn't work

**URL:** <https://forum.dynamobim.com/t/combining-strings-to-path-doesnt-work/46844>\
**Category:** Revit\
**Created:** [February 15, 2020, 7:49am UTC](https://forum.dynamobim.com/t/combining-strings-to-path-doesnt-work/46844 "2020-02-15T07:49:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arno\_De\_Lange](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arno_de_lange/32/35178_2.png) [@Arno\_De\_Lange](https://forum.dynamobim.com/u/Arno_De_Lange)\
**Post date:** [February 15, 2020, 7:49am UTC](https://forum.dynamobim.com/t/combining-strings-to-path-doesnt-work/46844/1 "2020-02-15T07:49:06Z")

</div>

I am going mad here:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/9/29cdeb3a252eb05f0c84ef3915b4654fa7ed7644.png)

if i feed it the normal textnode it works fine… but if i get some data that i collected and convert that to a string…it doens’t work… it makes a break and the phython node gives a path error. But with the normal textnode… which has the same entry then it works fine.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/953caf0445ef6c06dd4bde0e2f0496d260496c03.png)

WHY???!!!

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [February 15, 2020, 8:26am UTC](https://forum.dynamobim.com/t/combining-strings-to-path-doesnt-work/46844/2 "2020-02-15T08:26:10Z")

</div>

You have a new line in the first string, and paths cannot use that character.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/5/452c6cef0b6ec3e1b21865782da1e1ce28582148.jpeg)

---

<div class="post-metadata">

**Author:** ![Arno\_De\_Lange](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arno_de_lange/32/35178_2.png) [@Arno\_De\_Lange](https://forum.dynamobim.com/u/Arno_De_Lange)\
**Post date:** [February 15, 2020, 10:25am UTC](https://forum.dynamobim.com/t/combining-strings-to-path-doesnt-work/46844/3 "2020-02-15T10:25:38Z")

</div>

WOW i am impressed that you spotted those spaces… thanks Jacob

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [February 15, 2020, 4:40pm UTC](https://forum.dynamobim.com/t/combining-strings-to-path-doesnt-work/46844/4 "2020-02-15T16:40:10Z")

</div>

A quick secret: We all make the that kind of mistake at least once.

Seeing the issue is easier when you’ve been there, struggled with that for a few hours yourself. 🙂

---

<div class="post-metadata">

**Author:** ![Arno\_De\_Lange](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arno_de_lange/32/35178_2.png) [@Arno\_De\_Lange](https://forum.dynamobim.com/u/Arno_De_Lange)\
**Post date:** [February 17, 2020, 6:47am UTC](https://forum.dynamobim.com/t/combining-strings-to-path-doesnt-work/46844/5 "2020-02-17T06:47:10Z")

</div>

I have had my struggle…but had not seen this one… but yes it will be in my mind from now on
