public void ReplaceSymbol(char toReplace, char replacement) { InitialString = InitialString.Replace(toReplace, replacement); }
public bool IsSymbolInString(char symbol) { int indexOfSubstring = InitialString.IndexOf(symbol); return(indexOfSubstring >= 0); }
public bool IsSubstringInString(string substring) { int indexOfSubstring = InitialString.IndexOf(substring); return(indexOfSubstring >= 0); }
public void ReverseString() { Words = InitialString.Split(' '); Array.Reverse(Words); }