def removesuffix(s, suffix):
    """
    Removes suffix a string

    :param s: string to remove suffix from
    :param suffix: suffix to remove
    :type s: str
    :type suffix: str
    :return: a copy of the string with the suffix removed
    :rtype: str
    """
    return s if not s.endswith(suffix) else s[:-len(suffix)]