Input Parsing and change directory