結果 : how to check if string contains certain characters python