Removing leading White space from string

I am using the GPT api to generate text content. However it invariably, if not always returns a string with a double line break leading white space. Can anyone advise how i might be able to remove this at least at a text display level. I thought split by:last item buts finding all line breaks not just the double at the front and regex is beyond me atm thanks in advance

try trimmed, or ‘find & replace’ with regex pattern ^\s*