in reply to How to deal with such strings?

So, what's the output if the string is "X-Y"? Does the dash belong to the X or the Y? What if the string is "-.-.-"?