using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.NetworkInformation;
namespace Test1
{
class Program
{
static void Main(string[] args)
{
string Name = " SouravKayal ";
char[] MyChar = { ' ', 'l' };
string NewName = Name.TrimEnd(MyChar);
//ADD BRACKET SO YOU CAN SEE TRIM HAS WORKED
Console.WriteLine("[" + NewName + "]");
Console.ReadLine();
}
}
}