Why can’t I get the pattern to match?