bugfix, using isinstance, excepting numeric/unicode input