the whole string is as follows:
set @querytext = replace('BEGIN:VCALENDAR~~VERSION:2.0~~METHOD: PUBLISH~~' + stuff((SELECT SelectString2 + '' FROM triage.dbo.vw_ExportLists_ics_2 FOR XML PATH('')),1,0,'') + 'END:VCALENDAR','~~', char(13));
this prints in SSMS as:
BEGIN:VCALENDAR