UPDATE: corrected stri_wrap in cpp. Added separator to stri_flatten function