Change exception type for empty and whitespace strings to ArgumentException.