I believe
japhy's solution suggested that taking the lowercase of the string, made some difference in some systems that either ignore case, or make a big deal of it.
Like the difference between old windows and a unix system. I thought I would just
point that out. There may be a subtle difference, which you may be overlooking.