title: javascript object value to string conversion
body: <p>I am getting the value of input using javascript using below code.</p>
  
  <pre><code>var name=document.getElementById("firstName").value;
  </code></pre>
  
  <p>Getting output like rk-chaitu.I want to split this output using reg expression.</p>
  
  <p>Now my question is how to convert name object to String?</p>
  
  <p>Regards,</p>
  
  <p>Chaitu</p>