const string PAL_1 = "Że też łże jeż? łże też!";
const string PAL_2 = "Ada blada nici nadal bada.";
const string PAL_3 = "Do geese see God?";
const string PAL_4 = "Ada blada nitki nadal bada.";
const string PAL_5 = "Do God see geese?";
public static void Main()
Console.WriteLine(PAL_1 + " : " + isPalindrom(PAL_1));
Console.WriteLine(PAL_2 + " : " + isPalindrom(PAL_2));
Console.WriteLine(PAL_3 + " : " + isPalindrom(PAL_3));
Console.WriteLine(PAL_4 + " : " + isPalindrom(PAL_4));
Console.WriteLine(PAL_5 + " : " + isPalindrom(PAL_5));
static bool isPalindrom(string text)
text = text.Replace(" ", "");
text = text.Replace("!", "");
text = text.Replace(".", "");
text = text.Replace("?", "");
text = text.Replace(",", "");
for (int i = 0; i < (text.Length) / 2; i++)
if (text[i] != text[(text.Length - 1) - i])