Solution 1 should give you the complete direction on how to write string literals.
However, the root of the problem is much deeper. The real problem is that you are trying to hard-code string constants. Moreover, I suspect the with your coding style you allow yourself
immediate constants which is even worse.
(If you don't understand what are those constants, here is some simple illustration:
const string myValue = "This is my constant string";
string message = "This is my constant string" + ": blah-blah-blah";
MessageBox(message);
Please see: http://en.wikipedia.org/wiki/Don%27t_repeat_yourself[^].)Even such constants and sometimes even the immediate constants can come handy, especially in the middle of research or development, in a software product, they do not belong in code. They should go in data files or resources embedded in executable modules. If you do this, you will write strings as is, without a need to bind you mind with escaping.
—SA