Assuming that you only work with ASCII strings, you can drop every character stringbefore byteto get an ASCII representation. You can return the results back to stringusing ToStringfor the values:
string str = "abc123s";
string outStr = String.Empty;
foreach (char c in str)
outStr += ((byte) c).ToString();
byte string String.Join:
byte[] asciiVals = System.Text.Encoding.ASCII.GetBytes(str);
outStr = String.Join(String.Empty, asciiVals);