Actually, substr can modify the string if you use the fourth argument.
In reply to Re^3: Using substr on Hash Keys by jwkrahn in thread Using substr on Hash Keys by pc0019