結果 : java function to check if string contains substring