CORE: trim names of user in createUser()

- Trim names of new user before creation in DB to prevent
  storing values like "Name ".
Merge pull request #166 from zlamalp/trim

CORE: trim names of user in createUser()