removed last text between brackets