Check out example codes for "remove all non alphabetic characters from string c#". It will help you in understanding the concepts better.

Code Example 1

Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");

Code Example 2

var cleanString = new string(dirtyString.Where(Char.IsLetter).ToArray());

Learn ReactJs, React Native from akashmittal.com