Checks if the string consists only of whitespace characters (or is empty).
bool isWhitespace(String s) => Patterns.whitespace.hasMatch(s);