Fix str_is with wildcards. Closes #1481.