refactoring of initPseudo and initHashtag