Which is optimized way?
===

May be simple question but i am confused 

which code is optimized ? and should i use ?

what is the difference in internal process ?
		
    String str = editText.getText().toString();		
    str =str.trim().toLowerCase();
    textView.setText(str);

---		
    textView.setText(editText.getText().toString().trim().toLowerCase());
		
