handle empty string for lb functions