Added new constructor NewConfigString which construct Config from
string.