title: node js : percentage based string compare
body: <p>I need to compare 2 address in node js </p>
  
  <p>For ex: 2 address</p>
  
  <pre><code>1)  100 MAIN ST,   PO BOX 1022, SEATTLE WA 98104,   USA
  2) 101 MAIN ST,   PO BOX 1022, SEATTLE WA 98104,   USA  
  </code></pre>
  
  <p>should be treat as different address, but if we have </p>
  
  <pre><code>1)  100 MAIN ST,   PO BOX 1022, SEATTLE WA 98104,   USA
  2) 100 MAIN ST,   PO BOX 1022, SEATTLA WA 98104,   USA  
  </code></pre>
  
  <p>should be treat as same address, and i need to throw error. Anyone have any idea how to do this.? is there any function in node js to accomplish this? Please help me to resolve it.</p>