Added fail-case fall into case-insensitive comparison. Changed from tolower to bit operation suggested by Dan.