Make _validate_input() case insensitive