String, how to remove the enter symbol

Hello dear professionals,
Could you please advise how can I remove from a string this symbol that gives the Enter Button:
image

I have a text note in Revit that has 2 rows of text, it was achieved with the enter button.
I dont know how remove it with Dynamo and get the text in a single line


image

Dear Vikram_Subbaiah,
Thank you for your reply
but looks like in Revit its a bit different. This \n stands at the very end and not between them

1 Like

String.Replace node will do the trick as well.

Are you sure the line is broken by a return, not that it just the size of the text node shape element.

Seems like in a Text Note it’s a carriage return and the escape sequence for that is \r

1 Like