Return the part of a string before a specified substring.
Replace the substring before the first occurrence of a specified search string.
Replace the substring before the last occurrence of a specified search string.