Check if the output file exists before unlink
Substr instead of splitting strike row