Removed all code that messes with simply inserting closing bracket chars