public static void Main()
private static bool MainMenu()
Console.WriteLine(" Choose an option:");
Console.WriteLine("1) Reverse String");
Console.WriteLine("2) Remove Whitespace");
Console.WriteLine("3) Exit");
Console.WriteLine("\r\nSelect an option: ");
switch (Console.ReadLine())
private static strin CaptureInput()
Console.WriteLine("Enter the string you want to modify: ");
return Console.ReadLine();
private static void ReverseString()
Cinsole.WriteLine("Reverse String")
char[] charArray = CaptureInput().TocharArray();
Display.Result(Strin.Concat.charArray());
private static void RemoveWhitespace()
Console.Writeline("Reverse String");
DisplayResult(CaptureInput().Replace(" ", ""));
private statric voide DisplayResult(string message)
Console.WriteLine($"\r\nYour modified string is: {message}");
Console.WriteLine("\r\nPress enter to return to Main Menu");