SUBSTR BEF - Return a sub-string before a sub-string (Reports & Parameters Report Generator function)