Used some IE proprietary trcikery to utilize the Trim() function of VBS in JS since JS doesn't have a built-in one (not in the version that HTAs use anyway).