created function for sting death

simple function