replace multiple linefeed to single linefeed