結果 : python check for brackets in string