Expression checking: illegal periods | bad parentheses