Hello guys i'm trying to create a program in C# where I am comparing two strings in which within the strings they have the double quotation marks. My problem is how do I compare them for equality because it seems the compiler ignores the words within the quotation marks and does not give me the right comparison.
An example is if
string1 = Hi "insert name" here.
string2 = Hi "insert name" here.
I want to use string1.equals(string2)
. But it seems it tells me the strings are not equal. How do I do this? Please help.
PS. I have no control on what the strings will look like as they are dynamic variables. So I can't just say add an escape sequence to it.