static bool IsPalindrome(string text)
string cleanedText = string.Empty;
if (Char.IsLetterOrDigit(c))
cleanedText += Char.ToLower(c);
int left = 0, right = cleanedText.Length - 1;
if (cleanedText[left] != cleanedText[right])
Console.WriteLine("Въведете текст:");
string input = Console.ReadLine();
Console.WriteLine("Текстът е палиндром.");
Console.WriteLine("Текстът не е палиндром.");