converse string to integer