title: How to remove space in jquery masking
body: <p>User copy input string: "A344 34"  //string with space</p>
  
  <p>expected output value in textbox:  "A34434"</p>
  
  <p>Problem: with below code: getting result as : "A344"   //and skip the remain chars.</p>
  
  <pre><code>$('#pmField').mask('XXXXXX', {
      translation: {
          'X': {
              pattern: /[A-Za-z0-9]/, optional: true
          }
      }
  });
  </code></pre>
  
  <p>//Input textbox.</p>