Remove excessive '[' and ']'.