結果 : java code to check if string contains specific characters