replace indexOfCT with std.string.indexOf