Add some # inside a string to avoid it to match a regex/split
function protect(str) {
		var result = '#';
		var length = str.length;
		for (var i = 0 ; i < length ; i++) result += str[i] + "#";
		return result;
	}