update result substring process