fixed bug in searchQuotesHelper when quote starts with bracket