Make toInt case-insensitive