correct parenthesis check in generalFilter (refs #4078)