﻿function trim(inputString) {
    return inputString.replace(/^\s+|\s+$/g, '');
}