DESCRIPTION:
Return the leftmost characters of a string up to the point, where
the string needle appears first in the string.
This can be used together with the rightof-function to sequentially
parse a string that contains fields separated by needle.