new string and length, modify the regexp count and add the list