check string value to number is equal to expected