Trim the name given by the user.