String to integer conversion