Fixed a bug where series of newlines inside an updated string were getting replaced by a single newline.