Update replace method to display line break in textarea