why not `if(fieldname==="Sr")`?