title: Converting from Array[String] to Seq[String] in Scala
body: <p>In the following Scala code I attempt to convert from a String that contains elements separated by "|" to a sequence <code>Seq[String]</code>. However the result is a WrappedArray of characters. How to make this work?</p>
  
  <pre><code>val array = "t1|t2".split("|")
  println(array.toSeq)
  </code></pre>
  
  <p>results in:</p>
  
  <pre><code>WrappedArray(t, 1, |, t, 2)
  </code></pre>
  
  <p>What I need is:</p>
  
  <pre><code>Seq(t1,t2)
  </code></pre>