Thank you for your answer.
I still have a problem with a timestamp because there is br element after comma that is the first after splitting. I need to remove this empty line to be able to calculate duration between two timestamps.
The code you posted is code – there’s nothing “low-code” about actual code.
Fact: There is no low-code solution to real-world coding problems (in automation or elsewhere).
It’s hard to respond to a person posting about issues with code that they later want to disown and claim ignorance due to adoption of dubious (and ill-defined) low-code automation solutions.
If you want to work with cope-paste patchwork code (seriously NOT a good idea), use StackOverflow.
Now, your problem.
.trim(), substring() and indexOf() (in JS) are all viable solutions. Which you use is entirely your choice. I would advise you read the voluminous amounts of information available to make your choice and figure out which is best for you.