strip leading spaces from path