title: How to get the acronym from any string?
body: <p>Suppose I have a string like:</p>
  
  <pre><code>"  Hello Word  "
  </code></pre>
  
  <p>How do I get the acronym "HW" excluding the leading and trailing spaces?</p>
  
  <p>I tried it with looping constructs. But I want to do it without using any for loops or split method.</p>
  
  <p>Additional from OP in comments:<br>
  I just want to get the first letter of every word in the string, irrespective of case. If the string is " jon snow ", I want the result as "JS"</p>