/**
 * You are given two dancers, dancer1 and dancer2, represented as strings.
 * Your task is to compare the names of the dancers in a case-insensitive manner.
 * Complete the code below to return true if the dancers have the same name, and false otherwise.
 *
 * Example:
 * - If dancer1 = "John" and dancer2 = "john", the output should be true.
 * - If dancer1 = "Luna" and dancer2 = "Aiden", the output should be false.
 *
 * Note:
 * - You are not allowed to use the built-in string comparison (==) directly.
 * - You can assume that both dancer1 and dancer2 are non-empty strings.
 * - You can convert the strings to lowercase using the method .lowercase().
 * - The comparison should be case-insensitive, meaning "John" and "john" should be considered equal.
 * - The comparison is made considering the characters of the names, so leading or trailing spaces should be considered.
 * - You can use any string method(s) you think are necessary.
 */
fun stringEqual(dancer1: String, dancer2: String): Boolean {

    return dancer1.lowercase().trim() == dancer2.lowercase().trim()
}
/**
 * You are given two dancers, dancer1 and dancer2, represented as strings.
 * Your task is to compare the names of the dancers in a case-insensitive manner.
 * Complete the code below to return true if the dancers have the same name, and false otherwise.
 *
 * Example:
 * - If dancer1 = "John" and dancer2 = "john", the output should be true.
 * - If dancer1 = "Luna" and dancer2 = "Aiden", the output should be false.
 *
 * Note:
 * - You are not allowed to use the built-in string comparison (==) directly.
 * - You can assume that both dancer1 and dancer2 are non-empty strings.
 * - You can convert the strings to lowercase using the method .lowercase().
 * - The comparison should be case-insensitive, meaning "John" and "john" should be considered equal.
 * - The comparison is made considering the characters of the names, so leading or trailing spaces should be considered.
 * - You can use any string method(s) you think are necessary.
 */
fun stringEqual(dancer1: String, dancer2: String): Boolean {
/**
 * You are given two dancers, dancer1 and dancer2, represented as strings.
 * Your task is to compare the names of the dancers in a case-insensitive manner.
 * Complete the code below to return true if the dancers have the same name, and false otherwise.
 *
 * Example:
 * - If dancer1 = "John" and dancer2 = "john", the output should be true.
 * - If dancer1 = "Luna" and dancer2 = "Aiden", the output should be false.
 *
 * Note:
 * - You are not allowed to use the built-in string comparison (==) directly.
 * - You can assume that both dancer1 and dancer2 are non-empty strings.
 * - You can convert the strings to lowercase using the method .lowercase().
 * - The comparison should be case-insensitive, meaning "John" and "john" should be considered equal.
 * - The comparison is made considering the characters of the names, so leading or trailing spaces should be considered.
 * - You can use any string method(s) you think are necessary.
 */
fun stringEqual(dancer1: String, dancer2: String): Boolean {

    return dancer1.lowercase().trim() == dancer2.lowercase().trim()
}