public static void Main()
Console.WriteLine(new StringBuilder("'a'").ExtractChar());
Console.WriteLine(new StringBuilder("'\''").ExtractChar());
Console.WriteLine(new StringBuilder("z'\''").ExtractChar(1, out endIndex));
Console.WriteLine(endIndex);
Console.WriteLine(new StringBuilder("'").ExtractChar());
Console.WriteLine("Invalid char at position: 0", ex.Message);