So the normal way to trim something from a string is by trimming it by the character.
For example:
string test = "Random Text";
string trimmedString = test.Trim(new Char[] { 'R', 'a', 'n'});
Console.WriteLine(trimmedString);
//the output would be "dom Text"
But instead of doing this, is there a way to just completely remove the combined characters "Ran" from the string?
For example:
string test = "Random Text";
string trimmedString = test.Trim(string "Ran");
Console.WriteLine(trimmedString);
//the output would be "dom Text"
Now, the code above gives an error, but was wondering if something like this is possible, thank you!