Thanks for the first regexp fix, your improvement supports more input variations in some way.
The second one is also handy but regexp is long, ie. you use match pattern \S+\s+\S+\s+ twice. I had thought it is reducible to one matcher. However it does its job also.
I really appreciate your help it has given me new ideas, especially with the first regexp tip.