Use string module to define CHARS constant.
Added auto updated short_code on save.
Added some tests.