Remove str-ends-with dep

Just put a static `strendswith` function within the purge scope