Parses Terminal Input