function stringBuilder(value)
{
	this.sb = [];
	this.append(value);
}

stringBuilder.prototype.append = function(value)
{
	if (value)
		this.sb.push(value);
}

stringBuilder.prototype.clear = function()
{
	this.sb.length = 0;
}

stringBuilder.prototype.toString = function(str)
{
	if (str)
		return this.sb.join(str);
	else
		return this.sb.join('');
}
