Operations with bracket representations of trees