This Func will accept search strings in any orders to be matched with target string
function search(str,src) {
let state = true;
if (state === false) return false;
src.split('').forEach(s=>{
str.includes(s) ? state = true : state = false;
})
return state;
}