Added a test to support trailing whitespace on config file
Fixed support for trailing whitespace on config file