Python Detect Character In String