Update index.js

since function declaration is hoisted for the scope in any case, there's no reason to ditch `use strict` hint on having that `trim_prefix` nested declaration.