Checks if all pairs of brackets, braces, and parentheses in a text file are matched and nested correctly