title: Kotlin - Operator '==' cannot be applied to 'Editable!' and 'String' when comparing string
body: <p>So, Just started working with <strong>Kotlin</strong> in <strong>Android Studio 3.0 Canary 7</strong> and I was carrying out a simple operation of checking if string is empty or not.</p>
  
  <p>Here's my simple layout:</p>
  
  <pre><code>&lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Click me"
          android:id="@+id/btnClick"/&gt;
  &lt;EditText
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:hint="Write something to print"
          android:id="@+id/edtTxt"/&gt;
  </code></pre>
  
  <p>and with <strong>MainActivity.kt</strong> I've below stuff</p>
  
  <pre><code>class MainActivity : AppCompatActivity() {
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
          btnClick.setOnClickListener {
              val message=edtTxt.text
              if (message == "")
                  longToast("Come on! Write something")
              else
                  longToast("You've written $message")
          }
      }
  }
  </code></pre>
  
  <p>So initially I've written code within clicklistener as</p>
  
  <pre><code>val message=edtTxt.text
  if (message.equals("")) //this here
      longToast("Come on! Write something")
  else
      longToast("You've written $message")
  </code></pre>
  
  <p>Later on the IDE suggested to replace it with </p>
  
  <p><a href="https://i.stack.imgur.com/x6LXe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/x6LXe.png" alt="IDE Suggestion"></a></p>
  
  <p>and I tried on doing that with <code>if (message=="")</code> but that started showing <strong>Operator '==' cannot be applied to 'Editable!' and 'String' when comparing string</strong> error. This is totally confusing. </p>
  
  <p>My doubts here:</p>
  
  <ul>
  <li>What does this actually mean? </li>
  <li>How can I apply what IDE suggested or is there any workaround to get this done?</li>
  </ul>