correct parenthesis check in generalFilter (closes #4078)