Check out example codes for "how to remove last 3 characters from string in c#". It will help you in understanding the concepts better.
Code Example 1
myString = myString.Substring(0, myString.Length-3);
Learn ReactJs, React Native from akashmittal.com