Two quick possibilities come to mind, based upon your provided input:
Since 'DONE' is the last element of your string, you could anchor to the end of the string with ^ (Regular Expressions), a la:
$string =~ /DONE$/i;
If you know the only undesirable DONE follows echo and will be the only one that follows echo, you could use a negative look behind assertion (Looking ahead and looking behind) to skip that case: