Python String Find Substring Cpp Payment