Revert "Use String.IsNullOrEmpty"

This reverts commit 503daddf40eb3d7aa6d25c1eb82b89709c8866d9.