Code to check if braces match added.