I have input = "Graha Cinere". And I want the output just "GCi". So G it's take from first characters in first words and Ci from second words.
val = "Graha Cinere"
val.match(/\b(\w)/g).join('')
Current output : GC
Expected Output : GCi
I wish there's an answer from my question.