Hi,
use this
private string RemoveNon_Alphabets_id(string str)
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < str.Length; i++)
{
if (((char.IsLetter(str[i])) || str[i] == '-'))
{
sb.Append(str[i]);
}
}
return sb.ToString().ToLower();
}