new line and insertion=>replace fix