Simplify implementation for IsNullOrWhiteSpace

`IsNullOrWhiteSpace` can be simplified a bit by using LINQ.