handle non-string patterns