converting string to integer