Trying to write a short method so that I can parse a string and extract the first word. I have been looking for the best way to do this.
I assume I would use s
s
for those who are searching for kotlin
var delimiter = " " var mFullname = "Mahendra Rajdhami" var greetingName = mFullname.substringBefore(delimiter)