Change empty string check to string.IsNullOrWhitespace