I want to replace such string

```
'10001'

```

into

```
\'10001\'

```

The following code doesnt work:

```
Console.WriteLine(content);
content.Replace("'", "\\'");
Console.WriteLine(content);

```

or even this:

```
Console.WriteLine(content);
content.Replace("'", "\\\\'");
Console.WriteLine(content);

```

The value `content` is exactly the same before and after `replace`, i.e. `'10001'`

I'm using VC# 2010 Express. Thanks for help.