Fixed using `basestring` for stockno check.