fixed problem with inserting closing quotes and bars