not sure why you don't do a trim() and compare using === '' instead...

;-)