TrimEx
From SCAR Divi Manual
function TrimEx(delimiter, s: AnsiString): AnsiString;
SCAR Divi 3.10 > Current
Trims a string delimiter at the beginning and ending of a string s.
begin WriteLn(TrimEx('lol', 'lolHello World!lollol')); end.
Output:
Hello World!