def strip_end(text, suffix):
    """
    Strips out the suffix from the given text.

    :param text:  The text with the suffix.
    :param suffix:  The suffix to remove.

    :return: The text minus the suffix.
    """

    if not text.endswith(suffix):
        return text
    return text[:len(text)-len(suffix)]