title: Split a string in VB.NET
body: <p>I am trying to split the following into two strings.</p>
  
  <pre><code>"SERVER1.DOMAIN.COM Running"
  </code></pre>
  
  <p>For this I use the code.</p>
  
  <pre><code>Dim Str As String = "SERVER1.DOMAIN.COM Running"
  Dim strarr() As String
  strarr = Str.Split(" ")
  For Each s As String In strarr
      MsgBox(s)
  Next
  </code></pre>
  
  <p>This works fine, and I get two message boxes with <code>"SERVER1.DOMAIN.COM"</code> and <code>"Running"</code>.</p>
  
  <p>The issue that I am having is that some of my initial strings have more than one space.</p>
  
  <pre><code>"SERVER1.DOMAIN.COM        Off"
  </code></pre>
  
  <p>There are about eight spaces in-between ".COM" and "Off".</p>
  
  <p>How can I separate this string in the same way?</p>