@haruska the new tests do not include tests for abc~9~1389728233 cases. Do we want to use the second set of digits i that case ? 

The original description of the format was "text~long". The code and the unit tests deal with a lot of cases outside of that format, if you can provide some guidance that would be handy.