1. Added trim() to setting application Configuration settings.
2. Fixed problem with setting session cookie when application name is '.'