> Just to clarify, you want to reduce all strings "xxx" (length >= 2)
> to a single "x",
> for all "x" ?
Sounded to me more like split each string fooxybar into fooxbar and
fooybar, with all x's from each xy in one, and all y's in the other.