do you have any ideas or tips how to replace a string safely?
Example:
string Example = "OK OR LOK";
Now i want to replace "OK" with true and "LOK" with false.
Example = Example.Replace("OK", "true");
Example = Example.Replace("LOK", "false");
Now the Result is: Example = "true or Ltrue";
The Result should be: Example ="true or false";
I understand the problem, but i have no idea how to fix this.
Thanks