third attempt at solving nested quotes issues