remove self closing brackets