MolFileFactory::open() Test for upper case file extensions.
MolFileFactory::open() Test for upper case file extensions.

Due to removal of trim(), check for upper case file extensions is
necessary.

Additionally added close of input file in detectFormat().

tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball,tkemmer/ball