Do we really need replace space with \u00A0 here? Since the container already have the style  ```white-space: pre-wrap``` , maybe we don't need this step to preserve the white space.