Fixing the toLowerCase() bug on a null variable. Closes #47