Replaced IsNullOrEmpty with IsNullOrWhiteSpace.