Converted remaining searchBox.setText function calls to use getMessages