How to check if a TextView contains a certain string if(TextArea1.getText().toString().contains("."))