Remove leading spaces in a string using TRIM in C#

TrimStart() will remove only the leading white space characters.

Syntax:
stringtext.TrimStart();


Example:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ForgetCode
{
    class Program
    {
       static void Main(string[] args)
        {
            string text = "  My name is Forget Code  ";
            Console.WriteLine(text.TrimStart());            
        }
    }
}


Output:
(With only trailing spaces not leading spaces)
My name is Forget Code