Replace to line break string instead of truncate.

- Wrote test case
- Used line break string instead of deleting line break.