$string = $obj->last_prompt; $prev = $obj->last_prompt($string);