Simplify implementation for IsNullOrWhiteSpace