use stephenmathieson/str-flatten.c