trim path and alias whitespace