Implement ISGT for strings and numbers