1234567890123 1234567890123 sam WELCOME chris
1234567890123 1234567890123 chris WELCOME sam
1234567890123 1234567890123 luke WELCOME sam
so the text could be either of 3 above lines.
so i first need to scan for first occuring letter from either sam chris or luke
and return that letter.
I have decided to have seperate function for this. so far I have done: