title: Which is optimized way?
body: <p>May be simple question but i am confused </p>
  
  <p>which code is optimized ? and should i use ?</p>
  
  <p>what is the difference in internal process ?</p>
  
  <pre><code>String str = editText.getText().toString();     
  str =str.trim().toLowerCase();
  textView.setText(str);
  </code></pre>
  
  <hr>
  
  <pre><code>textView.setText(editText.getText().toString().trim().toLowerCase());
  </code></pre>