title: How to check if a string contains a substring containing spaces?
body: <p>Say I have a string like this in java:</p>
  
  <p>"this is {my string: } ok"</p>
  
  <p>Note, there can be any number of white spaces in between the various characters. How do I check the above string to see if it contains just the substring:</p>
  
  <p>"{my string: }"</p>
  
  <p>Many thanks!</p>