Accepting string as input and converting to integer.