making sure strings are parsed to ints