Added removal of empty strings from the array used for select_at_random.