It prefers sunny to half-shaded habitats with swampy ground.

Please remove spaces between words.
Itpreferssunnytohalf-shadedhabitatswithswampyground.