I suspect this is not what you want, but it does do what you asked...
declare @x varchar(30)
set @x = 'star, moon, sun, galaxy'
select '''' + replace(@x, ', ', ''', ''') + ''''
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.