title: How to take out only 1 word from a string in Lua
body: <p>I know <strong>how to split the whole string</strong> and <strong>put it in a table</strong> but <strong>I need to take out only the first word</strong> and then the rest of the string needs to stay the same.</p>
  
  <p>I tried to do something on this but I have no idea:</p>
  
  <pre><code>words = {}
  for word in s:gmatch("%w+") do table.insert(words,word) end
  </code></pre>