def prepend(string, prefix):
    """Append something to the beginning of another string.

    Parameters
    ----------
    string : str
        String to prepend to.
    prefix : str
        String to add to the beginning.

    Returns
    -------
    str
        String with the addition to the beginning.

    Notes
    -----
    This function deals with empty inputs, and returns an empty string in that case.
    """

    return prefix + string if string else string