Checks if the string is empty or only contains whitespace characters. This will call String.trim to ascertain whether the string contains only whitespace.