Tolerate whitespace when checking for the default section

This patch allows leading or trailing whitespace around the section
name when checking if the default section exists.  Previously, any
leading or trailing whitespace would cause a duplicate default
section line to be added.