How do I Remove the Line Break in String?

Hello

I want to remove the Line break in the String

String: “The Trustee for R & D Unit Trust T-as Guzman Y
Gomez Hawthorn”

Desired Output : “The Trustee for R & D Unit Trust T-as Guzman Y Gomez Hawthorn”

@kishan.savaliya
Read the string into a variable in UiPath.
Use the Replace method on the variable to remove line breaks.

1 Like

Hi @kishan.savaliya

Input.ReplaceLineEndings("")

1 Like

Hi @kishan.savaliya

inputString: "The Trustee for R & D Unit Trust T-as Guzman Y
         Gomez Hawthorn"
Output= inputString.ReplaceLineEndings("")

Hope it helps!!

1 Like

@Parvathy @Dilli_Reddy Thank You all for the Solutions. Working Fine

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.