title: How compare two string without considering spaces and case of string in java?
body: <p>I have this code:</p>
  
  <pre><code>public class TestString {
  
      public static void main(String[] args) {
          String a = "Vijay Kakade";
          String b = "vij";
  
          if (a.contains(b)) {
              System.out.println("11");
          } else {
              System.out.println("22");
          }
      }
  }
  </code></pre>
  
  <p>This example should return 11 but it returns 22.</p>