title: Remove text after a space
body: <p>I need to remove the text after a space in a string using Java.</p>
  
  <p>Input: </p>
  
  <pre><code>0 21343434
  2 2323
  6 232312
  </code></pre>
  
  <p><br>
  Output:  </p>
  
  <pre><code>0
  2
  6
  </code></pre>
  
  <p>Anyone know how to do this? Just need to edit the string to remove everything after the space? Thanks!</p>