Removes any double instances of the specified character.
So "--" becomes "-" if the character is '-'.
public static string RemoveDoubleCharacter(this string text, char character)
The text with characters to remove.
The character to remove.
A string with duplicate characters removed.