replace slow shlex.split method