Refractored configuration, fixed bug with reading garbage after string in parseString.