Shorter, and appears to be the same end result

http://stackoverflow.com/questions/3801027/string-comparison