기본 트림 방식은 화이트 스페이스 문자(스페이스, 탭) 및 라인 구분 문자(LF, CR) 문자를 공백 문자열로 치환한다.
strLeftTrimChar를 지정한 경우, 해당 문자를 빈 문자열로 치환한다.
| Parameters | Type | Description | 
|---|---|---|
| strString | STRING | 원본 문자열 | 
| strLeftTrimChar | STRING | [옵션] 앞에서 트림 처리할 문자 | 
| Type | Description | 
|---|---|
| STRING | 트림 처리된 문자열 | 
strLeftTrimChar 파라미터를 지정하지 않거나, 빈 문자열로 지정한 경우, 기본 트림 방식으로 동작한다.
function btn_trim_on_mouseup(objInst)
{
	// 결과값: "000123000"
	factory.consoleprint("[" + factory.stringtrim("  000123000  ") + "]");
	// 결과값: "123"
	factory.consoleprint("[" + factory.stringtrim("000123000", "0", "0") + "]");
	// 결과값: "123000"
	factory.consoleprint("[" + factory.stringltrim("000123000", "0") + "]");
	// 결과값: "000123"
	factory.consoleprint("[" + factory.stringrtrim("000123000", "0") + "]");
	// 결과값: "000123   "
	factory.consoleprint("[" + factory.stringltrim("  000123000  ") + "]");
	// 결과값: "   000123"
	factory.consoleprint("[" + factory.stringrtrim("  000123000  ") + "]");
}