bstrlib - WIP - tested functions breplace