String helper functions
当前为 
        此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/27278/174477/Str%20Lib.js
      
// region [ Str Lib ]
var Str = {};
Str.trim = function (s) {
	return s.replace(/^\s+/, '').replace(/\s+$/, '');
};
Str.padRight = function(s, padStr, totalLength){
	return s.length >= totalLength  ? s : s + Str.repeat(padStr, (totalLength-s.length)/padStr.length);
};
Str.repeat = function(s, count) {
	var newS = "", i;
	for (i=0; i<count; i++) {
		newS += s;
	}
	return newS;
};
// endregion