* rewrite stripallbut() to return the length