String to number conversion

HI,

I am trying to convert a string “Female” and Male" to a number. I have tried the string to number node but I get an error “missing value for string”.

I tried Category to number and rules enging but I can’t seem to get it to convert. Any help appreciated.