Add function to create user from string.