fix string index out of bound exception while logstorage.importTextFile