/**
 * This function takes in a musician's name, instrument, and genre and returns a concatenated string
 * with the musician's information in a specific format.
 *
 * @param name The musician's name.
 * @param instrument The musician's instrument.
 * @param genre The musician's genre.
 * @return A string containing the musician's name, instrument, and genre in a specific format.
 */
fun concatMusicianInfo(name: String, instrument: String, genre: String): String {

    // Check if any of the arguments is an empty string
    if (name.isEmpty() || instrument.isEmpty() || genre.isEmpty()) {
        return "Please provide a valid input for all arguments."
    }

    // Ensure the genre is written in uppercase
    var formattedGenre = genre.toUpperCase()

    // Convert the musician's name to lowercase and capitalize the first letter
    val nameParts = name.toLowerCase().split(" ")
    val namePartsCapitalized = nameParts.map { it.capitalize() }
    val formattedName = namePartsCapitalized.joinToString(" ")

    // Concatenate the musician's information in a specific format
    val info = "In the world of $formattedGenre, $formattedName is a talented $instrument player."
    
    return info
}
/**
 * This function takes in a musician's name, instrument, and genre and returns a concatenated string
 * with the musician's information in a specific format.
 *
 * @param name The musician's name.
 * @param instrument The musician's instrument.
 * @param genre The musician's genre.
 * @return A string containing the musician's name, instrument, and genre in a specific format.
 */
fun concatMusicianInfo(name: String, instrument: String, genre: String): String {
/**
 * This function takes in a musician's name, instrument, and genre and returns a concatenated string
 * with the musician's information in a specific format.
 *
 * @param name The musician's name.
 * @param instrument The musician's instrument.
 * @param genre The musician's genre.
 * @return A string containing the musician's name, instrument, and genre in a specific format.
 */
fun concatMusicianInfo(name: String, instrument: String, genre: String): String {

    // Check if any of the arguments is an empty string
    if (name.isEmpty() || instrument.isEmpty() || genre.isEmpty()) {
        return "Please provide a valid input for all arguments."
    }

    // Ensure the genre is written in uppercase
    var formattedGenre = genre.toUpperCase()

    // Convert the musician's name to lowercase and capitalize the first letter
    val nameParts = name.toLowerCase().split(" ")
    val namePartsCapitalized = nameParts.map { it.capitalize() }
    val formattedName = namePartsCapitalized.joinToString(" ")

    // Concatenate the musician's information in a specific format
    val info = "In the world of $formattedGenre, $formattedName is a talented $instrument player."
    
    return info
}