title: Discord.js Command Input Strings
body: <p>I'm writing a Discord Bot-game, and my issue is that players must create a character. However, every standard person has a first and last name, but I take other input in a single command. My issue is that I'm not sure if my code would ignore the quotes placed around the name in the event that quotes are indeed placed. </p>
  
  <p>Say a person names their character Joe Shmoe. When they type in the command <code>p://ccreate "Joe Shmoe" Male 38</code>, I'm concerned that my arguments interpreter might take '"Joe' as args[0], 'Shmoe"' as args[1], Male as args[2], and 38 as args[3]. My issue is that I want "Joe Shmoe" to be interpreted as one argument. Here's my code:</p>
  
  <pre><code>client.on("message", async message =&gt; {
  if(message.author.bot) return;
  if(message.content.indexOf(config.prefix) !== 0) return;
  const args = message.content.slice(config.prefix.length).trim().split(/ +/g);
  const command = args.shift().toLowerCase(); 
  </code></pre>
  
  <p>If I'm right, could you please elaborate on how to edit it so that if my code receives such an issue it keeps the string as one? However, I also know that some alternatives might make quotes required around anything non-integral, boolean, etc., so preferably you can find a way that anything wrapped in quotes is included as a string, and if a string is only one word it can still be recognized  as a string without throwing the code. I know this has been done, just not how to do it.</p>