added guard for removing quotes from 0 length files