add breakline replacing function