title: Scala method toLowerCase in spark
body: <pre><code>val file = sc.textFile(filePath)
  val sol1=file.map(x=&gt;x.split("\t")).map(x=&gt;Array(x(4),x(5),x(1)))
  val sol2=sol1.map(x=&gt;x(2).toLowerCase)
  </code></pre>
  
  <p>In sol1, I have created an Rdd[Array[String]] and I want to put for every array the 3rd string element in LowerCase so call the method toLowerCase which should do that but instead it transform the string in lowercase char??</p>