title: equalsIgnoreCase returns false even when strings are same in java
body: <pre><code>int locctr = 0,toknum = 0;
  
      String temp;
      String d;
      String [] tok = new String[500];
      String[] lines = CODE.getText().split("\n");
      try
      {
          for(int i=0;i&lt;lines.length;i++)
          {
              temp = lines[i];
              if(temp != null)
              {
                  StringTokenizer st = new StringTokenizer(lines[i],":,\t[]",true); 
                  while (st.hasMoreTokens())
          {
                      String ss=st.nextToken();
                      tok[toknum] = ss;  
                      toknum++; //increment
                  }
              }
          }
          System.out.print("tok[0] is "+tok[0]);
          boolean r = tok[0].equalsIgnoreCase(".DATA");
          System.out.print("r is : "+r);
          if(r == true)
          {
             System.out.print("\n      INSIDE .DATA"); 
          }
      }
      catch(Exception e)
      {
  
      }
  </code></pre>
  
  <p>// input should be accepted for CODE ...its been accepted using a .txt file
  CODE contains</p>
  
  <pre><code>.DATA
   DATAENDS
  </code></pre>
  
  <p>this code should be executed on button click......</p>
  
  <p>PROBLEM : even when the value <code>@ tok[0] = .DATA</code> its returning false.....have checked the <code>tok[]</code> array to the data is getting assigned correctly.....
  but 
  condition it still gives false.....</p>
  
  <pre><code>OUTPUT :
  
       temp is .DATA
           SS IS .DATA
           tok[num] .DATA
           toknum 0
       temp is DATAENDS
           SS IS DATAENDS
           tok[num] DATAENDS
           toknum 1tok[0] is .DATA
      r is : false
  </code></pre>