I think you want `basestring` here.  Looks good otherwise!