Reduced strings length in ethernet functions