added function parse_history_from_string()