Fix str_is with wildcards. Closes #1481.
Merge branch '4.0'