fixes #18 +/- stripping from only head/tail of paths