Remove trailing bracket