Ah. I took the function from http://lua-users.org/wiki/StringRecipes.

Shall i fix it to lowercase or go with gmatch?