Replace newlines with extra echo call