Added dStrIsEmpty and replaced some incorrect string comparisons.
Removed some unneccessary changes and made file name consistent.