replace bracket fields