Checks the placement of right curly braces.