Fix bug when a renaming file has less than 3 characters will cause crash. (issue #22)