String text = "test yazısı, a b c, merhaba"; if(text.contains("merhaba")){ //merhaba kelimesi, text içinde var }