RemoveConsecutiveDelimiters is a project mainly written in Ruby, it's free.
Script for removing consecutive delimiters from a text based file