floatdrop/gulp-plumber — pull request #21 by simnalamburt (2014-10-01 22:41:42+00:00)
Title: Use str.trim() instead of str.replace(/^\s+|\s+$/g, '')

It behaves exactly same

References:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim