Remove trailing leftover bracket