﻿function trim(str, chars) {
    return ltrim(rtrim(str, chars), chars);
}

