Truncate

This function deletes characters at the end of the string.