Suppose I have a string like:
" Hello Word "
How do I get the acronym "HW" excluding the leading and trailing spaces?
I tried it with looping constructs. But I want to do it without using any for loops or split method.
Additional from OP in comments:
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"