title: Case Sensitivity Kotlin / ignoreCase
body: <p>I am trying to ignore case sensitivity on a string. For example, a user can put "Brazil" or "brasil" and the fun will trigger. How do I implement this? I am new to Kotlin. </p>
  
  <pre><code>fun questionFour() {
      val edittextCountry = findViewById&lt;EditText&gt;(R.id.editTextCountry)
      val answerEditText = edittextCountry.getText().toString()
  
      if (answerEditText == "Brazil") {
          correctAnswers++
      }
  
      if (answerEditText == "Brasil") {
          correctAnswers++
      }
  }
  </code></pre>
  
  <h3>EDIT</h3>
  
  <p>Another person helped me write like this. My question now about this way is "Is there a cleaner way to write this?"</p>
  
  <pre><code>fun questionFour() {
      val edittextCountry = findViewById&lt;EditText&gt;(R.id.editTextCountry)
      val answerEditText = edittextCountry.getText().toString()
  
      if (answerEditText.toLowerCase() == "Brazil".toLowerCase() || answerEditText.toLowerCase() == "Brasil".toLowerCase()) {
          correctAnswers++
      }
  }
  </code></pre>
  
  <h3>Answer</h3>
  
  <pre><code>fun questionFour() {
  
          val edittextCountry = findViewById&lt;EditText&gt;(R.id.editTextCountry)
          val answerEditText = edittextCountry.getText().toString()
  
          if (answerEditText.equals("brasil", ignoreCase = true) || answerEditText.equals("brazil", ignoreCase = true)) {
              correctAnswers++
          }
      }
  </code></pre>