Fix crash caused by comparing strings with numbers