Fixed StringReversion code

When number to revert is negative