A small convenient class for validating strings.