title: I am getting NumberFormatException while converting String into Intger
body: <p>I have an php api which give me array like this:</p>
  
  <p>﻿11%0%0%801%0%0%812%0%0%640%33%6</p>
  
  <p>Above response is going to be stored in <em>"String a"</em></p>
  
  <pre><code>try{
      //... Some code of my application which is not relavant to show
      String a = response.toString();
      String tokens = a.split("%");
      for (String str : tokens)
      {
          Log.e("log_tag", str);
      }
      String ds = tokens[0];
      int i_ds = Integer.parseInt(ds);
      Log.e("log_tag", "data is: "+i_ds);
  }catch (Exception e) {
       Log.e("log_tag","Error: " + e.toString());
  }
  </code></pre>
  
  <p>I am getting following in my DDMS:</p>
  
  <pre><code>Tag         Text
  log_tag     11
  log_tag     0
  log_tag     0
  log_tag     801
  log_tag     0
  log_tag     0
  log_tag     812
  log_tag     0
  log_tag     0
  log_tag     640
  log_tag     33
  log_tag     6
  log_tag     java.lang.NumberFormatException: Invalid int:"11"
  </code></pre>