Fixed address cleaning function

It now properly matches empty strings.