Adding in a function to clean up the string that is submited ot list dir as well as make the value an optional return in node json (for example dirs dont have values)