Adjusting syntax of match()