Fix for values that may be understood as "numeric", i.e. has no .toLowerCase()

Did not dig into the code - so I'm not absolutely sure what this function does, but: The script crashed here for me for a key named "4826". Does not crash anymore when I make sure that we have a string.