# Removing "\\n" via text.Replace("\\n","");  Whats wrong?

**URL:** https://discussions.unity.com/t/removing-n-via-text-replace-n-whats-wrong/60622
**Category:** Questions & Answers
**Created:** [January 17, 2013, 12:54am UTC](https://discussions.unity.com/t/removing-n-via-text-replace-n-whats-wrong/60622 "2013-01-17T00:54:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Anxo](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/anxo/32/256100_2.png) [@Anxo](https://discussions.unity.com/u/Anxo)
#### Post date: [January 17, 2013, 12:54am UTC](https://discussions.unity.com/t/removing-n-via-text-replace-n-whats-wrong/60622/1 "2013-01-17T00:54:01Z")

</div>

I have a string that I create at one point and this string contains the  
characters to break the line. But I need to use that same string later without the  
characters.

```
text = text.Replace("

```

“,”");

does not appear to be working.

Any ideas?

---

<div class="post-metadata">

### Author: ![Lovrenc](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@Lovrenc](https://discussions.unity.com/u/Lovrenc)
#### Post date: [January 17, 2013, 1:13am UTC](https://discussions.unity.com/t/removing-n-via-text-replace-n-whats-wrong/60622/2 "2013-01-17T01:13:52Z")

</div>

text = text.Replace("  
“,”");
