Remove trailing close tag