plan later
croak if undef passed to _trim_lengt and test this
version 1.28