Test whether an object is a single, non-empty character string
Source:R/is_funs.R
is_char_scalar.RdThis function checks whether an object is a scalar character string that is
not NULL, not NA, and not empty after trimming whitespace. The function
relies on is_invalid() to detect unusable inputs such as NULL,
zero-length vectors, and error objects.