using System;
namespace P4_20
{
    class Program
    {
       
        static void Main()
        {
            string str = "  ===## Hello C# World ##===   ";
            Console.WriteLine(str);
            string str1 = str.Trim();
            Console.WriteLine(str1);
            char[] ch = { ' ', '=', '#' };
            string str2 = str.Trim(ch);
            Console.WriteLine(str2); 
            Console.ReadLine();
        } 
    }
}
