should return 2 if string is 2,1002