Wildcard pattern matching

what the code should return for
str a
pattern a***
true or false

Hey @dakshi
It should return true since if we take all * to be empty strings then str and pattern match