A reliable string kernel based approach for solving queries by sketch