added check for all whitespace span