Implement javaScript string functions in a gulp stream