Find First Occurance of newline character in flow

Can anybody tell me how to find the first oocurance of new line character in flow?

I have used indexOf(); but it does not produce the right result.


It works using indexOf serviceā€¦ in the subString field, give a new line character. (not as \n, but open it in large editor and enter once, cursor will move down one line)