Added support for collapsing long string