stri_flatten function

Flatten a String