fixed possible int>str comparison