Improved inserting of quotes