Calc: Most common string in a range excluding empty cells

I have a lot of cells containing strings, but about 80% are empty. Is it possible to write a formula that finds the most common non-empty string in a range?