Trims the string of starting/trailing spaces before parsing SMILES in CDK
Changes from logger.equals to logger.error

This bug was found by findbugs