title: How to limit the amount of characters in a Lua string
body: <p>I have a question: how do I make the <code>lua_tostring</code> function limit the amount of entries.</p>
  
  <p>For example 8 characters limit:</p>
  
  <pre><code>poppy_name = "command"; // OK, within the limit;
  poppy_name = "commander"; // Fail, Is out of range, show a message the permitted limit.
  </code></pre>
  
  <p>I searched I couldn't find anymore, is there a way to limit the <code>lua_tostring</code>?</p>