bstrlib - WIP - tested functions bmidstr