advance and add prompt string after system call