de>allowEmptySlices</code> parameter, so
the returned array contains empty strings where spaces were repeated.</p>

<pre><code class="language-swift">print(
    line.characters.split(
        omittingEmptySubsequences: false, 
        whereSeparator: { $0 == &quot; &quot; }
    ).map(String.init))
// Prints &quot;[&quot;BLANCHE:&quot;, &quot;&quot;, &quot;&quot;, &quot;I&quot;, &quot;don\&#39;t&quot;, &quot;want&quot;, &quot;realism.&quot;, &quot;I&quot;, &quot;want&quot;, &quot;magic!&quot;]&quot;</code></