better loadNpmTask injection

I managed to add string arrays as an input for loadNpmTask; I also modified the existing test and README
what is `pluginName.trim()` doing? Why is it there?