Find Char Index In String Python Functions