How can I remove blank lines from this result to use in another module?

ChatGTP module returns a result with two line breaks at the start and I want them removed to send to RenderForm to generate an image.

Screenshot 2023-03-05 at 18.39.57

Hi. Use trim function or even use replace if the you have empty lines more than empty spaces before the string

image

image

Thanks, Helio!
Wemakefuture
If you have questions reach out :wink:

2 Likes

Thanks! Had almost the same suggestion in the FB group and experimented until I ended up with the second option above. Works like a charm. :heart: