Only use one trim() function in UtilsParsing

Closes #728

Also, use trim on the entire line in FileParser::next() so that sections
and comments can have whitespace around them.