Added trim function in utils.
Documented utils/trim.
Improve resilience of utils/subst.
Move utils/{trim,eval,subst,interp} to new strings lib.
Added strings/gtrim.
Improve resilience of match_attack_damage.
Make strings/eval take an optional custom error handler.
Make modify_unit_attacks use strings lib.