Added tests for multiple entries.
Added tests for multiple entries.
Added trim() calls to avoid issues with multiple entries.