CORE: fixed parsing common name in Utils

- Replace all double+ whitespaces in input string (raw name)
  with single space and trim input, so matcher can parse name
  correctly.
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 #165 from zlamalp/parser

CORE: fixed parsing common name in Utils
Merge pull request #166 from zlamalp/trim

CORE: trim names of user in createUser()