testing for string include open and close bracket