create id object from String.