Numformat fix

Since numformat function can not format strings like 'N/A', we need to check for the string value.