Fix #5229 by defining ndims for strings