title: Replace empty space in array of string in spark scala
body: <p>I have a scenario where Array[String] has got empty space. When i apply replace it doesn't return proper result. What would be mistake in my implementation.</p>
  
  <pre><code>scala&gt; val chk2 =Array("8.0","60.0","")
  chk2: Array[String] = Array(8.0, 60.0, "")
  
  scala&gt; val chk3 = chk2.map(x =&gt; (x.replace("", "0")))
  chk3: Array[String] = Array(080.000, 06000.000, 0)
  </code></pre>