結果 : check if a string contains certain characters python