fixing 3.result.js to not have a trailing new-line and adding in the trim() calls to the comparisons