check if input is string or integer python