Added a exception handling of a to short string file