nitcc: move the responsibility of making the substring to the automatom