deleteRight function

Deletes the last n-characters of a string