結果 : check if a string contains specific characters python