title: Equals not comparing
body: <p>I have an if statement that works as log in so it compares nick and pass for the user. The problem in question is that the <code>equals</code> function is not working or at least not the way I need it to. While debugging the string coming from the input is right ("c" from idTextInput and "1" from PassTextInput) but the comparison returns false every time. Can anyone help me with this?</p>
  
  <pre><code>btnJackIn.setOnClickListener(
      new Button.OnClickListener(){
          public  void onClick(View v){
              EditText idTextInput = (EditText) findViewById(R.id.txtID);
              EditText PassTextInput = (EditText) findViewById(R.id.txtPass);
  
              if (idTextInput.getText().equals("c") &amp;&amp; PassTextInput.getText().equals("1")) {
                  Intent characterPage = new Intent(getBaseContext(), MainCharacterPage.class);
                  characterPage.putExtra("id", idTextInput.getText());
                  characterPage.putExtra("pass", PassTextInput.getText());
                  MainActivity.this.startActivity(characterPage);
  
              }
          }
      }
  );
  </code></pre>