Simple validation class to help check the types of any string