def replace_last_stop(orf_seq):
    """
    replace * with nothing as the final character in in string

    Parameters
    ----------
    orf_seq : str
        orf_sequence

    Returns
    -------
    orf_seq : str
        orf_sequence

    Examples
    --------

    replace_last_stop("META*")
    replace_last_stop("METAL")

    """
    if orf_seq[-1] == '*':
        replaced_orf_seq = orf_seq[0:-1]
        return replaced_orf_seq
    else:
        return orf_seq
