remove extra spaces in directory listing