changed how string patterns are matched