Parse the string to integer