title: Regular expression to remove whitespace before and after = in java
body: <p>I want a regular expression which can remove spaces before or after <code>=</code> in java.</p>
  
  <p>For example consider a string</p>
  
  <pre><code>String str="Name   =  Aniket";
  </code></pre>
  
  <p>I want the result to contain a strring which contains no spaces before or after <code>=</code>. That is result should contain <code>"Name=Aniket"</code>.
  How to do it in java?</p>