Fixing isTring error