Strip unnecessary brackets.