Fix modify empty section

recommended to review per commit.
it is not problem in terms of parameters we modify, but it is problem in general work with kernel command line if it contain escaped whitespaces or quoted strings. So it is not problem now, but if we use it to modify values which uses such whitespaces or quoting we will have problem.