A small parser which parses a strings containing key-value pairs.