Implement string pattern matching | DoorDash