Adding CP code
Changes to Cancel Code string handling