Or could remove both strings and comments before checking if the parens are balanced?