title: First letter of each word in a string and punctuation
body: <p>Input:
  <code>Aliquam ipsum ex, tempus ornare semper ac, varius vitae nibh.</code></p>
  <p>Output:
  <code>A i e, t o s a, v v n.</code></p>
  <p>I need a javascript function to solve this.</p>
  <p>I'm trying something like this:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function short_verse(verse) {
    let result = [];
  
    verse.split(' ').map(word =&gt; word.charAt(0) != '' ? result.push(word.charAt(0)) : '');
  
    return result.join(" ");
  }
  
  let input = "Aliquam ipsum ex, tempus ornare semper ac, varius vitae nibh.",
    output = short_verse(input);
  
  console.log(output);</code></pre>
  </div>
  </div>
  </p>
  <p>The story: They say you can memorize texts this way. :) So, I create an application that will include this feature, too.</p>
  <p>It should work for non-ascii chars, too. Example:</p>
  <p>Input: <code>Aliqușam țipsum ex, tempăs ornâre semper ac, varius vitae îbh.</code></p>
  <p>Output: <code>A ț e, t o s a, v v î</code></p>
  <p>Note: In my case romanian diacritics would be enough - ăâîșțĂÂÎȘȚ.</p>