using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            string myStr = "A man, a plan, a canal: Panama";
            string str = myStr;
            string check = string.Empty;
            str = str.Replace(" ", string.Empty);
             str = str.Replace(",", string.Empty);
             str = str.Replace(":", string.Empty);
            str = str.ToLower();
            Console.WriteLine(str);
            // Console.WriteLine(isPallendDrom(myStr));
        }

        // static int isPallendDrom(string stsr){
        //     string str = stsr;
        //     string check = string.Empty;
        //     str = str.Replace(" ", string.Empty);
        //     str = str.ToLower();
        //     Console.WriteLine(isPallendDrom(str));
        //     for (int i=str.Length-1; i>=0; i--){
        //         check += str[i];
        //     }
    
        //     if(str == check){
        //         return true;
        //     }else{
        //         return false;
        //     }
        // }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: