Add automatic closing characters.