Remove extra whitespace
Use document fragment for rendering collection