public static void Main()
string text = "Never a foot too far, even";
Console.WriteLine(IsPalindrome(text));
static string AllowedLetters = "abcdefghijklmnopqrstuvwxyz";
static bool IsPalindrome(string text)
foreach (char letter in text)
if (AllowedLetters.Contains(letter))
int midpoint = newText.Length / 2;
for (int idx = 0; idx <= midpoint; idx++)
if (newText[idx] != newText[newText.Length - 1 - idx])