PR for code review

For readability purpose only:

We can assign the values for getText().toString() to a local variable and use it as a parameter in the constructor