How to replace enter key or next line on text with ""

First one should work if u write it like this:

str.Replace((vblf),“desired replacing character”)