Pattern#match avoids other matches