modify tokenizing closing parenthesis