stripped another extra '/' from path strings and prevented '/' from being stripped to ''