title: How to compare number zero programmatically when the keyboard language is changed from english to other language in C#
body: <p>I want to compare zero that is coming from TextBox as string for removing it from front in c#.</p>
  
  <pre><code> private string RemoveLeadingZeros(string str)//TextBox.Text
          {
              int index = -1;
              for (int i = 0; i &lt; str.Trim().Length; i++)
              {
                  if (str[i] == '0')//This comparison fails if i change the keyboard language from english to some other language ex. chinese
                      continue;
                  else
                  {
                      index = i;
                      break;
                  }
              }
  
              return (index != -1) ? str.Substring(index) : "0";
          }
  </code></pre>
  
  <p>So, for example if the string is "0001" it should return 1. This method fails if we change the keyboard language other than English (Example:chinese).</p>
  
  <p>How can we compare the zero irrespective of the language changed from keyboard from English to some other language?</p>