Added utility functions StartsWith, EndsWith, Contains

And use them to replace StrCmp in the threat
calculation.
Extras: Fix gibs sometimes not spawning.