str to object