/**
 * This function generates a full actor name by combining the first name, last name, and optional middle initials.
 *
 * @param firstName The first name of the actor.
 * @param lastName The last name of the actor.
 * @param middleInitials The middle initials of the actor. Defaults to an empty string.
 * @return The full actor name.
 */
fun generateActorName(firstName: String, lastName: String, middleInitials: String = ""): String {

    // Concatenating first name and last name with a space in between
    var fullName = "$firstName $lastName"

    // Including middle initials if provided
    if (middleInitials.isNotEmpty()) {
        fullName += " $middleInitials"
    }

    return fullName
}
/**
 * This function generates a full actor name by combining the first name, last name, and optional middle initials.
 *
 * @param firstName The first name of the actor.
 * @param lastName The last name of the actor.
 * @param middleInitials The middle initials of the actor. Defaults to an empty string.
 * @return The full actor name.
 */
fun generateActorName(firstName: String, lastName: String, middleInitials: String = ""): String {
/**
 * This function generates a full actor name by combining the first name, last name, and optional middle initials.
 *
 * @param firstName The first name of the actor.
 * @param lastName The last name of the actor.
 * @param middleInitials The middle initials of the actor. Defaults to an empty string.
 * @return The full actor name.
 */
fun generateActorName(firstName: String, lastName: String, middleInitials: String = ""): String {

    // Concatenating first name and last name with a space in between
    var fullName = "$firstName $lastName"

    // Including middle initials if provided
    if (middleInitials.isNotEmpty()) {
        fullName += " $middleInitials"
    }

    return fullName
}