solve string to integer