title: StringTokenizer -How to ignore spaces within a string
body: <p>I am trying to use a stringtokenizer on a list of words as below</p>
  
  <pre><code>String sentence=""Name":"jon" "location":"3333 abc street" "country":"usa"" etc
  </code></pre>
  
  <p>When i use stringtokenizer and give space as the delimiter as below</p>
  
  <pre><code>StringTokenizer tokens=new StringTokenizer(sentence," ")
  </code></pre>
  
  <p>I was expecting my output as different tokens as below</p>
  
  <pre><code>Name:jon
  
  location:3333 abc street
  
  country:usa
  </code></pre>
  
  <p>But the string tokenizer tries to tokenize on the value of location also and it appears like</p>
  
  <pre><code>Name:jon
  
  location:3333
  
  abc
  
  street
  
  country:usa
  </code></pre>
  
  <p>Please let me know how i can fix the above and if i need to do a regex what kind of the expression should i specify?</p>