correctly capture quotes around strings