util: add strip funs; path: return usorted result