Fixed regression in validations, and made more readable

is_a? String in validate_integer_string failed
also removed useless nil check, which checks whether String doesn't inherit from nil