# Text Note list not matching

**URL:** <https://forum.dynamobim.com/t/text-note-list-not-matching/112361>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [September 16, 2025, 4:58pm UTC](https://forum.dynamobim.com/t/text-note-list-not-matching/112361 "2025-09-16T16:58:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![channe](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@channe](https://forum.dynamobim.com/u/channe)\
**Post date:** [September 16, 2025, 4:58pm UTC](https://forum.dynamobim.com/t/text-note-list-not-matching/112361/1 "2025-09-16T16:58:50Z")

</div>

Hello, I’m trying to match the text in the TextNote.Text list, but each word in the list seems to have space below them, and I can’t get them to match.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/0/b0939075662daecd6c0d860cf871affe49b6a557.png)

---

<div class="post-metadata">

**Author:** ![discourse\_ai\_spam](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@discourse\_ai\_spam](https://forum.dynamobim.com/u/discourse_ai_spam)\
**Post date:** [September 16, 2025, 4:58pm UTC](https://forum.dynamobim.com/t/text-note-list-not-matching/112361/2 "2025-09-16T16:58:58Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/5/c550ed42453f927febfd2bb94d4388fbcf36b9a6.png) [@system](https://forum.dynamobim.com/u/system)\
**Post date:** [September 16, 2025, 5:50pm UTC](https://forum.dynamobim.com/t/text-note-list-not-matching/112361/3 "2025-09-16T17:50:13Z")

</div>



---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 16, 2025, 5:56pm UTC](https://forum.dynamobim.com/t/text-note-list-not-matching/112361/4 "2025-09-16T17:56:15Z")

</div>

What you’re seeing is a line break character (`\n`). You can either add a line break to your search term by joining strings (`"GRID" + "\n"`) or just remove the line break from the note text with `String.TrimTrailingWhitespace`.

---

<div class="post-metadata">

**Author:** ![channe](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@channe](https://forum.dynamobim.com/u/channe)\
**Post date:** [September 16, 2025, 5:59pm UTC](https://forum.dynamobim.com/t/text-note-list-not-matching/112361/5 "2025-09-16T17:59:32Z")

</div>

It works now. Thank you. I’m fairly new to this. May I know why this happened?

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [September 16, 2025, 7:32pm UTC](https://forum.dynamobim.com/t/text-note-list-not-matching/112361/6 "2025-09-16T19:32:28Z")

</div>

If I remember correctly, this is pretty common with `TextNotes`. I believe it has something to do with the internal formatting that Revit uses. It’s also very common with copy/pasted text utilizing any kind of formatting.

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [September 17, 2025, 7:35am UTC](https://forum.dynamobim.com/t/text-note-list-not-matching/112361/7 "2025-09-17T07:35:59Z")

</div>

Other option for you to think of is the “Contains” or “StartsWIth” text nodes that could mean you do not have to worry about the trailing spaces.

Especially if you are just trying to filter out the text notes that have specific text
