val teamMap : Map = mapOf("Yankees" to "baseball", "Cowboys" to "football", "Lakers" to "basketball") val sport = teamMap.entries .firstOrNull { myString.contains(it.key) } ?.map { it.value } ?: "None detected"