simplify the whole method by returning matcher.matches();