trim_prefix hoisting within the try/catch causing --use-strict flag to fail

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.