title: String format with NumberFormat
body: <p>I'm formatting a String that i enter in a JTextField using NumberFormat instance without specifying the location.  As a result i have a String that represents a number formatted with white spaces as separator.  I have a problem to get rid of the white spaces when i want to use the String for other processes.  I have tried <code>string.replaceAll(" ", "");</code> and <code>string.replaceAll("\\s", "");</code> but none of it works.</p>
  
  <pre><code>String string = ((JTextField)c).getText();
  string = string.replaceAll("\\s", "");
  </code></pre>
  
  <p>Also when i do <code>int index = string.indexOf(" ");</code> or <code>int index = string.indexOf("\\s");</code> it returns -1, which means that it doesn't find the character.
  When i do </p>
  
  <pre><code>for(Character ch : string.toCharArray()) {
  System.out.println("ch : " + ch.isSpaceChar(ch))
  }
  </code></pre>
  
  <p>it returns true for the empty char.  How is represented a space char in java ?</p>
  
  <p>I tried also </p>
  
  <pre><code>StringBuilder b = new StringBuilder(((JTextField)c).getText());
  String string = b.toString.replaceAll("\\s", "");
  System.out.println("string : " + string);
  </code></pre>
  
  <p>It doesn't replace a thing.</p>