My take on the answer pretty much the same

 - uses match with regex instead of string