modify the life calculation from reading integer key to string typo