string to number for number type filters