using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace Csharp_String
{
class Program
{
static void Main(string[] args)
{
string Country;
string City;
Country = "Bangladesh";
City = "Dhaka";
Console.WriteLine("\n====Make clone of string.\n");
Console.WriteLine(Country.Clone());
Console.WriteLine("\n====Compares two specified String objects\n");
Console.WriteLine(Country.CompareTo(City));
Console.WriteLine("\n====Returns a value indicating whether a specified substring occurs within this string.\n");
Console.WriteLine(Country.Contains("Ban"));
Console.WriteLine("\n====Determines whether the end of this string instance matches the specified string. \n");
Console.WriteLine(Country.EndsWith("h"));
Console.WriteLine("\n====Determines whether this instance and another specified String object have the same value\n");
Console.WriteLine(Country.Equals(City));
Console.WriteLine("\n====Reports the zero-based index of the first occurrence \n");
Console.WriteLine(Country.IndexOf("e"));
Console.WriteLine("\n====Returns a copy of this string converted to lowercase.\n");
Console.WriteLine(Country.ToLower());
Console.WriteLine("\n====Returns a copy of this string converted to uppercase.\n");
Console.WriteLine(Country.ToUpper());
Console.WriteLine("\n====Returns a new string in which a specified string is inserted at a specified index Position \n");
Console.WriteLine(Country.Insert(0, "Hello"));
Console.WriteLine("\n====Reports the zero-based index position of the last occurrence.\n");
Console.WriteLine(Country.LastIndexOf("e"));
Console.WriteLine("\n====Compares two specified String objects \n");
Console.WriteLine(Country.Length);
Console.WriteLine("\n====This method deletes all the characters from index position. \n");
Console.WriteLine(Country.Remove(5));
Console.WriteLine("\n====This method helps to replace the character.\n");
Console.WriteLine(Country.Replace('B', 'd'));
Console.WriteLine("\n====Compares two specified String objects\n");
Console.WriteLine(Country.StartsWith("S"));
Console.WriteLine("\n====Retrieves a substring from this instance. \n");
Console.WriteLine(Country.Substring(2, 5));
Console.WriteLine("\n====It removes extra whitespaces from beginning and ending of string \n");
Console.WriteLine(Country.Trim());
Console.ReadKey();
}
}
}