Modified InputParser::ReadParameters() to the original version in order to ensure the safety of the codes.