Fix number constant comparisons

Converts strings to integers and compares those.