Check out example codes for "C# copy string except for last letter". It will help you in understanding the concepts better.

Code Example 1

using System;

class Program
{
    static void Main()
    {
        string input = "OneTwoThree";

        string sub = input.Substring(0, input.Length - 5);
        Console.WriteLine("Substring: {0}", sub);
    }
}

Output

Substring: OneTwo

Learn ReactJs, React Native from akashmittal.com