Refactor: using shlex instance to split the tokens