Parsing input data to chapter