title: Compare String Kotlin
body: <p>I'm studying kotlin, but I'm very disappointed, I can not compare two Strings.</p>
  
  <p>What is the right way to compare.</p>
  
  <pre><code>btn_login.setOnClickListener {
              val login = input_email.text.trim()
              val pass = input_password.text.trim()
  
              if( login.equals( pass ) ){
                  startActivity&lt;MainActivity&gt;()
              }
  
              if (login?.equals(other = pass)){
                  startActivity&lt;MainActivity&gt;()
              }
  
              if (login == pass){
                  startActivity&lt;MainActivity&gt;()
              }
  
          }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8oDct.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8oDct.png" alt="enter image description here"></a></p>