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.
Merge pull request #729 from dorkster/whitespace

Only use one trim() function in UtilsParsing