added .replace for double new lines