tests not passing because values are not trimmed on import

The unit tests include some white space which made the tests not pass,
updated the production code to trim() the values before inserting them
which fixed the tests.