Hi Team How to remove the Space and concate the output value

Hi Team,

My string value string=“Test
Demo”

but i need output like Test Demo or TestDemo

can you anyone help me these

@Mada_Sai_Krishna,
To remove newline characters and replace them with a space:

stringvariable = stringvariable.Replace(Environment.NewLine, " ").Replace(vbLf, " ").Replace(vbCr, " ")

To remove newline characters and join words without spaces:

stringvariable = stringvariable.Replace(Environment.NewLine, "").Replace(vbLf, "").Replace(vbCr, "")

Thanks,
Ashok :slight_smile:

Hi @Mada_Sai_Krishna

Try the below expression,

- Assign -> Input = "Test
                                   Demo"
- Assign -> Output = Input.Replace(Vblf," ")

Hope it helps!!

Hi @Mada_Sai_Krishna

Try this

Input.ReplaceLineEndings(" ")

Regards,