Python Search For Substring In String In Cpp