using System;
public class Program
{
public static void Main()
Console.WriteLine(IsPalindrome("race car").ToString());
}
public static bool IsPalindrome(string str){
bool result = true;
str = str.Replace(" ","");
for(int i=0; i <= str.Length/2; i++){
if(str[i] != str[str.Length - 1 - i]){
return false;
return result;