def strip_right(s, pattern):
    """
    Strips a string right (end) of string if found.  Otherwise, returns the original string.

    :param s: str
    :param pattern: str
    :rtype: str
    """

    if s.endswith(pattern):
        return s[:-(len(pattern))]
    else:
        return s