Given an array of strings containing three types of braces, write a function that checks whether the braces in each string are correctly matched