[Bugfix] Inserting at the bottom of empty string should add ending newline