CORE: trim names of user in createUser()

- Trim names of new user before creation in DB to prevent
  storing values like "Name ".