'Returns contents of the ``string`` before the first occurrence of ``marker``.
If the ``marker`` is not found, whole string is returned.
See also `Fetch From Right`, `Split String` and `Split String
From Right`.'

def fetch_from_left(self, string, marker):

    return string.split(marker)[0]
