Script to get rid of Trailing Brackets