UPDATE: stri_trim rewritten in C API