Fixed tolower function

Now it works properly :D