Debug and bug fix for LogicalCalculation.togliParentesiInutili()