remove stray brackets