Latest changes to fuction isString before final checking, it works much better!