code class="sourceCode r"><span id="cb23-1"><a href="#cb23-1" tabindex="-1"></a><span class="co"># stringr</span></span>
<span id="cb23-2"><a href="#cb23-2" tabindex="-1"></a><span class="fu">str_squish</span>(<span class="st">&quot; String with trailing, middle,   and leading white space</span><span class="sc">\t</span><span class="st">&quot;</span>)</span>
<span id="cb23-3"><a href="#cb23-3" tabindex="-1"></a><span class="co">#&gt; [1] &quot;String with trailing, middle, and leading white space&quot;</spa