Add validation for integers in strings.