isBlank method

bool isBlank()

Returns true if the string is blank or empty, false otherwise.

Implementation

bool isBlank() {
  return trim().isEmpty;
}