title: The method strip() is undefined for the type String
body: <p>Trying to use <code>strip()</code> method to get rid of white spaces around a string and for some reason <code>strip()</code> doesn't work. The error I get is "The method <code>strip()</code> is undefined for the type String".</p>
  
  <pre><code>String fullAd = "   Hello World   ";
  System.out.println(fullAd.strip());
  </code></pre>