I have a windows phone application. In the application I have a textbox whose acceptsreturn property is set to true.

What I want to do is create a string from the textbox and replace the new lines with a specific character, something like `"NL"`

I've tried the following but none of them worked.

```
string myString = myTextBox.Text.Replace(Environment.NewLine,"NL");
string myString = myTextBox.Text.Replace("\n","NL");

```