Added a test for the trailing whitespace support in configuration file
Fixed the trailing whitespace support in configuration file