function strLeft(sourceStr, keyStr){ return (sourceStr.indexOf(keyStr) == -1 | keyStr=='') ? '' : sourceStr.split(keyStr)[0]; }
function strRight(sourceStr, keyStr){ idx = sourceStr.indexOf(keyStr); return (idx == -1 | keyStr=='') ? '' : sourceStr.substr(idx+ keyStr.length); }
function rightBack(sourceStr, keyStr){ arr = sourceStr.split(keyStr); return (sourceStr.indexOf(keyStr) == -1 | keyStr=='') ? '' : arr.pop() }
function leftBack(sourceStr, keyStr){ arr = sourceStr.split(keyStr) arr.pop(); return (keyStr==null | keyStr=='') ? '' : arr.join(keyStr) }
function middle(sourceStr, keyStrLeft, keyStrRight){ return strLeft(strRight(sourceStr,keyStrLeft), keyStrRight); }