I perform a string.IndexOf operation on a given string, using as search string the input retrieved from a TextBox.
When the input text consists of two words separated by a space, IndexOf finds no matches although it should.
Further investigation reveals that the retrieved string is formatted as word1[2 backlashes][space]word2 and I have to remove the two backlashes in order for the IndexOf to work correctly.
What gives?
Thanks in advance.
I would expect to retrieve the TextBox text as typed.